diff --git a/include/boost/iterator_adaptors.hpp b/include/boost/iterator_adaptors.hpp index 35b1c56..1cba09a 100644 --- a/include/boost/iterator_adaptors.hpp +++ b/include/boost/iterator_adaptors.hpp @@ -800,22 +800,20 @@ struct iterator_adaptor : private: BOOST_STATIC_CONSTANT(bool, is_input_or_output_iter = (boost::is_convertible::value - || boost::is_convertible::value)); + | boost::is_convertible::value)); // Iterators should satisfy one of the known categories BOOST_STATIC_ASSERT(is_input_or_output_iter); -#if !defined(BOOST_MSVC) // Iterators >= ForwardIterator must produce real references // as required by the C++ standard requirements in Table 74. - BOOST_STATIC_CONSTANT(bool, forward_iter_with_real_reference = - (!boost::is_convertible::value - || boost::is_same::value - || boost::is_same::value)); + BOOST_STATIC_CONSTANT(bool, forward_iter_with_real_reference + = ((!boost::is_convertible::value) + | boost::is_same::value + | boost::is_same::value)); // This check gives incorrect results in iter_traits_gen_test.cpp BOOST_STATIC_ASSERT(forward_iter_with_real_reference); -#endif public: iterator_adaptor() { }