mirror of
https://github.com/boostorg/function.git
synced 2025-07-29 12:27:15 +02:00
function_template.hpp:
- Don't let Borland C++ use class template function function_base.hpp: - Work around freaky MIPSpro bug that affects the Python lib [SVN r15514]
This commit is contained in:
@ -32,6 +32,15 @@
|
|||||||
# define BOOST_FUNCTION_TARGET_FIX(x)
|
# define BOOST_FUNCTION_TARGET_FIX(x)
|
||||||
#endif // not MSVC
|
#endif // not MSVC
|
||||||
|
|
||||||
|
#if defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730
|
||||||
|
// Work around a compiler bug.
|
||||||
|
// boost::python::detail::function has to be seen by the compiler before the
|
||||||
|
// boost::function class template.
|
||||||
|
namespace boost { namespace python { namespace detail {
|
||||||
|
class function;
|
||||||
|
}}}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
|
||||||
|
@ -514,7 +514,7 @@ namespace boost {
|
|||||||
f1.swap(f2);
|
f1.swap(f2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined (BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
#if !defined (BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !defined(BOOST_BCB_PARTIAL_SPECIALIZATION_BUG)
|
||||||
|
|
||||||
#if BOOST_FUNCTION_NUM_ARGS == 0
|
#if BOOST_FUNCTION_NUM_ARGS == 0
|
||||||
#define BOOST_FUNCTION_PARTIAL_SPEC R (void)
|
#define BOOST_FUNCTION_PARTIAL_SPEC R (void)
|
||||||
|
Reference in New Issue
Block a user