add macro BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX

[SVN r19056]
This commit is contained in:
Douglas Gregor
2003-07-11 16:00:29 +00:00
parent fa73a61fcc
commit 2c8fc1b31f
2 changed files with 8 additions and 4 deletions

View File

@ -73,7 +73,13 @@ namespace boost { namespace python { namespace objects {
# define BOOST_FUNCTION_NO_ENABLE_IF # define BOOST_FUNCTION_NO_ENABLE_IF
#endif #endif
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) #if defined (BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
|| defined(BOOST_BCB_PARTIAL_SPECIALIZATION_BUG) \
|| !(BOOST_STRICT_CONFIG || !defined(__SUNPRO_CC) || __SUNPRO_CC > 0x540)
# define BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX
#endif
#if !defined(BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX)
namespace boost { namespace boost {
#if defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730 && !defined(BOOST_STRICT_CONFIG) #if defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730 && !defined(BOOST_STRICT_CONFIG)

View File

@ -561,9 +561,7 @@ namespace boost {
f1.swap(f2); f1.swap(f2);
} }
#if !defined (BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \ #if !defined(BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX)
&& !defined(BOOST_BCB_PARTIAL_SPECIALIZATION_BUG) \
&& (BOOST_STRICT_CONFIG || !defined(__SUNPRO_CC) || __SUNPRO_CC > 0x540)
#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)