Index: detail/config_def.hpp =================================================================== --- detail/config_def.hpp (revision 3) +++ detail/config_def.hpp (working copy) @@ -47,7 +47,7 @@ #endif #if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) \ - || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x531)) \ + || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x5A0)) \ || (BOOST_WORKAROUND(BOOST_INTEL_CXX_VERSION, <= 700) && defined(_MSC_VER)) \ || BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(60590042)) \ || BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x590)) Index: indirect_iterator.hpp =================================================================== --- indirect_iterator.hpp (revision 3) +++ indirect_iterator.hpp (working copy) @@ -110,7 +110,7 @@ private: typename super_t::reference dereference() const { -# if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551)) +# if BOOST_WORKAROUND(__BORLANDC__, < 0x5A0 ) return const_cast(**this->base()); # else return **this->base(); Index: iterator_adaptor.hpp =================================================================== --- iterator_adaptor.hpp (revision 3) +++ iterator_adaptor.hpp (working copy) @@ -24,9 +24,14 @@ #ifdef BOOST_ITERATOR_REF_CONSTNESS_KILLS_WRITABILITY # include -#else + +# if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610)) +# include +# endif + +#else # include -#endif +#endif #include Index: iterator_facade.hpp =================================================================== --- iterator_facade.hpp (revision 3) +++ iterator_facade.hpp (working copy) @@ -470,8 +470,7 @@ // class iterator_core_access { -# if defined(BOOST_NO_MEMBER_TEMPLATE_FRIENDS) \ - || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551)) +# if defined(BOOST_NO_MEMBER_TEMPLATE_FRIENDS) // Tasteless as this may seem, making all members public allows member templates // to work in the absence of member template friends. public: