Skip to content

Commit ccde931

Browse files
committed
Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers.
1 parent c9b605f commit ccde931

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/boost/foreach.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
// Some compilers allow temporaries to be bound to non-const references.
5050
// These compilers make it impossible to for BOOST_FOREACH to detect
5151
// temporaries and avoid reevaluation of the collection expression.
52-
# if BOOST_WORKAROUND(__BORLANDC__, < 0x593) \
52+
# if BOOST_WORKAROUND(BOOST_BORLANDC, < 0x593) \
5353
|| (BOOST_WORKAROUND(BOOST_INTEL_CXX_VERSION, <= 700) && defined(_MSC_VER)) \
5454
|| BOOST_WORKAROUND(__SUNPRO_CC, < 0x5100) \
5555
|| BOOST_WORKAROUND(__DECCXX_VER, <= 60590042)
@@ -65,7 +65,7 @@
6565
|| BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(600)) \
6666
|| BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3206)) \
6767
|| BOOST_WORKAROUND(__SUNPRO_CC, >= 0x5100) \
68-
|| BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x590))
68+
|| BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x590))
6969
# define BOOST_FOREACH_NO_CONST_RVALUE_DETECTION
7070
# else
7171
# define BOOST_FOREACH_RUN_TIME_CONST_RVALUE_DETECTION
@@ -436,7 +436,7 @@ inline T *&to_ptr(T const &)
436436
}
437437

438438
// Borland needs a little extra help with arrays
439-
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
439+
#if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x564))
440440
template<typename T,std::size_t N>
441441
inline T (*&to_ptr(T (&)[N]))[N]
442442
{

0 commit comments

Comments
 (0)