diff --git a/include/boost/range/begin.hpp b/include/boost/range/begin.hpp index 9812f71..162a29d 100755 --- a/include/boost/range/begin.hpp +++ b/include/boost/range/begin.hpp @@ -142,9 +142,8 @@ inline BOOST_DEDUCED_TYPENAME range_const_iterator::type begin( const T& r ) return range_detail::begin( r ); } - -#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) -// BCB is not able to overload pointer when class overloads are also available +#if BOOST_WORKAROUND(__MWERKS__, <= 3003 ) || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) +// BCB and CW are not able to overload pointer when class overloads are also available. template<> inline range_const_iterator::type begin( const char*& r ) { diff --git a/include/boost/range/end.hpp b/include/boost/range/end.hpp index 6c5ef68..5acd61c 100755 --- a/include/boost/range/end.hpp +++ b/include/boost/range/end.hpp @@ -143,8 +143,8 @@ inline BOOST_DEDUCED_TYPENAME range_const_iterator::type end( const T& r ) -#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) -// BCB is not able to overload pointer when class overloads are also available +#if BOOST_WORKAROUND(__MWERKS__, <= 3003 ) || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) +// BCB and CW are not able to overload pointer when class overloads are also available. template<> inline range_const_iterator::type end( const char*& r ) { diff --git a/include/boost/range/size.hpp b/include/boost/range/size.hpp index f01af3a..90ab308 100755 --- a/include/boost/range/size.hpp +++ b/include/boost/range/size.hpp @@ -92,9 +92,8 @@ inline BOOST_DEDUCED_TYPENAME range_size::type size( const T& r ) } -#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) -// BCB is not able to overload pointer when class overloads are also -available. +#if BOOST_WORKAROUND(__MWERKS__, <= 3003 ) || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) +// BCB and CW are not able to overload pointer when class overloads are also available. inline range_size::type size( const char* r ) { return range_detail::str_size( r ); }