mirror of
https://github.com/boostorg/detail.git
synced 2025-07-30 04:17:14 +02:00
Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers.
This commit is contained in:
@ -26,7 +26,7 @@
|
|||||||
#include <boost/cstdlib.hpp> // for exit codes
|
#include <boost/cstdlib.hpp> // for exit codes
|
||||||
#include <ostream> // for ostream
|
#include <ostream> // for ostream
|
||||||
|
|
||||||
# if defined(__BORLANDC__) && (__BORLANDC__ <= 0x0551)
|
# if defined(BOOST_BORLANDC) && (BOOST_BORLANDC <= 0x0551)
|
||||||
# define BOOST_BUILT_IN_EXCEPTIONS_MISSING_WHAT
|
# define BOOST_BUILT_IN_EXCEPTIONS_MISSING_WHAT
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#include <boost/type_traits/conversion_traits.hpp>
|
#include <boost/type_traits/conversion_traits.hpp>
|
||||||
#include <boost/type_traits/composite_traits.hpp> // for is_reference
|
#include <boost/type_traits/composite_traits.hpp> // for is_reference
|
||||||
#if defined(__BORLANDC__)
|
#if defined(BOOST_BORLANDC)
|
||||||
#include <boost/type_traits/ice.hpp>
|
#include <boost/type_traits/ice.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ namespace boost {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(__BORLANDC__)
|
#if defined(BOOST_BORLANDC)
|
||||||
template <class UseDefault>
|
template <class UseDefault>
|
||||||
struct choose_arg_or_default { typedef choose_arg type; };
|
struct choose_arg_or_default { typedef choose_arg type; };
|
||||||
template <>
|
template <>
|
||||||
@ -75,7 +75,7 @@ namespace boost {
|
|||||||
|
|
||||||
template <class Arg, class DefaultGen, class Base, class Traits>
|
template <class Arg, class DefaultGen, class Base, class Traits>
|
||||||
class resolve_default {
|
class resolve_default {
|
||||||
#if defined(__BORLANDC__)
|
#if defined(BOOST_BORLANDC)
|
||||||
typedef typename choose_arg_or_default<typename is_default<Arg>::type>::type Selector;
|
typedef typename choose_arg_or_default<typename is_default<Arg>::type>::type Selector;
|
||||||
#else
|
#else
|
||||||
// This usually works for Borland, but I'm seeing weird errors in
|
// This usually works for Borland, but I'm seeing weird errors in
|
||||||
|
Reference in New Issue
Block a user