diff --git a/include/boost/iterator/counting_iterator.hpp b/include/boost/iterator/counting_iterator.hpp index a05ca2c..ab99eba 100644 --- a/include/boost/iterator/counting_iterator.hpp +++ b/include/boost/iterator/counting_iterator.hpp @@ -3,18 +3,19 @@ // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef COUNTING_ITERATOR_DWA200348_HPP -# define COUNTING_ITERATOR_DWA200348_HPP +#define COUNTING_ITERATOR_DWA200348_HPP -# include +#include -# include -# include -# ifndef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS -# include -# endif -# include -# include -# include +#include +#include +#ifndef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS +#include +#endif +#include +#include +#include +#include namespace boost { namespace iterators { @@ -34,23 +35,23 @@ namespace detail struct is_numeric_impl { -# ifndef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS +#ifndef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS BOOST_STATIC_CONSTANT(bool, value = std::numeric_limits::is_specialized); -# else +#else -# if !BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x551)) +#if !BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x551)) BOOST_STATIC_CONSTANT( bool, value = ( std::is_convertible::value && std::is_convertible::value )); -# else +#else BOOST_STATIC_CONSTANT(bool, value = std::is_arithmetic::value); -# endif +#endif -# endif +#endif }; template @@ -58,7 +59,7 @@ namespace detail : std::integral_constant::value> {}; -# if defined(BOOST_HAS_LONG_LONG) +#if defined(BOOST_HAS_LONG_LONG) template <> struct is_numeric : boost::true_type {}; @@ -66,9 +67,9 @@ namespace detail template <> struct is_numeric : boost::true_type {}; -# endif +#endif -# if defined(BOOST_HAS_INT128) +#if defined(BOOST_HAS_INT128) template <> struct is_numeric : boost::true_type {}; @@ -76,7 +77,7 @@ namespace detail template <> struct is_numeric : boost::true_type {}; -# endif +#endif // Some compilers fail to have a numeric_limits specialization template <> @@ -89,7 +90,7 @@ namespace detail typedef typename boost::detail::numeric_traits::difference_type type; }; -# if defined(BOOST_HAS_INT128) +#if defined(BOOST_HAS_INT128) // std::numeric_limits, which is used by numeric_traits, is not specialized for __int128 in some standard libraries template <> struct numeric_difference @@ -102,7 +103,7 @@ namespace detail { typedef boost::int128_type type; }; -# endif +#endif template struct counting_iterator_base @@ -129,10 +130,10 @@ namespace detail counting_iterator // self , Incrementable // Base , Incrementable // Value -# ifndef BOOST_ITERATOR_REF_CONSTNESS_KILLS_WRITABILITY +#ifndef BOOST_ITERATOR_REF_CONSTNESS_KILLS_WRITABILITY const // MSVC won't strip this. Instead we enable Thomas' // criterion (see boost/iterator/detail/facade_iterator_category.hpp) -# endif +#endif , traversal , Incrementable const& // reference , difference @@ -195,7 +196,7 @@ class counting_iterator { } -# if 0 +#if 0 template counting_iterator( counting_iterator const& t @@ -203,7 +204,7 @@ class counting_iterator ) : super_t(t.base()) {} -# endif +#endif BOOST_DEFAULTED_FUNCTION(counting_iterator& operator=(counting_iterator const& rhs), { *static_cast< super_t* >(this) = static_cast< super_t const& >(rhs); return *this; }) diff --git a/include/boost/iterator/indirect_iterator.hpp b/include/boost/iterator/indirect_iterator.hpp index e3ef075..c3558e2 100644 --- a/include/boost/iterator/indirect_iterator.hpp +++ b/include/boost/iterator/indirect_iterator.hpp @@ -13,6 +13,7 @@ #include #include +#include #include #include diff --git a/include/boost/iterator/permutation_iterator.hpp b/include/boost/iterator/permutation_iterator.hpp index 3876f3d..186b625 100644 --- a/include/boost/iterator/permutation_iterator.hpp +++ b/include/boost/iterator/permutation_iterator.hpp @@ -10,6 +10,7 @@ #include +#include #include diff --git a/include/boost/iterator/transform_iterator.hpp b/include/boost/iterator/transform_iterator.hpp index fa10a27..fd53f36 100644 --- a/include/boost/iterator/transform_iterator.hpp +++ b/include/boost/iterator/transform_iterator.hpp @@ -9,6 +9,7 @@ #include #include +#include #include #include #include