Index: boost/range/iterator_range.hpp =================================================================== --- boost/range/iterator_range.hpp (Revision 44112) +++ boost/range/iterator_range.hpp (Arbeitskopie) @@ -164,7 +164,7 @@ typedef IteratorT iterator; iterator_range() : m_Begin( iterator() ), m_End( iterator() ) - #ifndef NDEBUG + #ifndef BOOST_DISABLE_ASSERTS , singular( true ) #endif { } @@ -173,7 +173,7 @@ template< class Iterator > iterator_range( Iterator Begin, Iterator End ) : m_Begin(Begin), m_End(End) - #ifndef NDEBUG + #ifndef BOOST_DISABLE_ASSERTS , singular(false) #endif {} @@ -182,7 +182,7 @@ template< class Range > iterator_range( const Range& r ) : m_Begin( impl::adl_begin( r ) ), m_End( impl::adl_end( r ) ) - #ifndef NDEBUG + #ifndef BOOST_DISABLE_ASSERTS , singular(false) #endif {} @@ -191,7 +191,7 @@ template< class Range > iterator_range( Range& r ) : m_Begin( impl::adl_begin( r ) ), m_End( impl::adl_end( r ) ) - #ifndef NDEBUG + #ifndef BOOST_DISABLE_ASSERTS , singular(false) #endif {} @@ -200,7 +200,7 @@ template< class Range > iterator_range( const Range& r, iterator_range_detail::const_range_tag ) : m_Begin( impl::adl_begin( r ) ), m_End( impl::adl_end( r ) ) - #ifndef NDEBUG + #ifndef BOOST_DISABLE_ASSERTS , singular(false) #endif {} @@ -209,7 +209,7 @@ template< class Range > iterator_range( Range& r, iterator_range_detail::range_tag ) : m_Begin( impl::adl_begin( r ) ), m_End( impl::adl_end( r ) ) - #ifndef NDEBUG + #ifndef BOOST_DISABLE_ASSERTS , singular(false) #endif {} @@ -220,7 +220,7 @@ m_Begin = r.begin(); m_End = r.end(); - #ifndef NDEBUG + #ifndef BOOST_DISABLE_ASSERTS singular = r.singular; #endif return *this; @@ -232,7 +232,7 @@ { m_Begin = r.begin(); m_End = r.end(); - #ifndef NDEBUG + #ifndef BOOST_DISABLE_ASSERTS singular = r.is_singular(); #endif return *this; @@ -243,7 +243,7 @@ { m_Begin = impl::adl_begin( r ); m_End = impl::adl_end( r ); - #ifndef NDEBUG + #ifndef BOOST_DISABLE_ASSERTS singular = false; #endif return *this; @@ -254,7 +254,7 @@ { m_Begin = impl::adl_begin( r ); m_End = impl::adl_end( r ); - #ifndef NDEBUG + #ifndef BOOST_DISABLE_ASSERTS singular = false; #endif return *this; @@ -376,11 +376,11 @@ IteratorT m_Begin; IteratorT m_End; - #ifndef NDEBUG + #ifndef BOOST_DISABLE_ASSERTS bool singular; #endif - #ifndef NDEBUG + #ifndef BOOST_DISABLE_ASSERTS public: bool is_singular() const {