From 2c8fc1b31f1ac0ce164e768ef00ce826f1156548 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 11 Jul 2003 16:00:29 +0000 Subject: [PATCH] add macro BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX [SVN r19056] --- include/boost/function/function_base.hpp | 8 +++++++- include/boost/function/function_template.hpp | 4 +--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/include/boost/function/function_base.hpp b/include/boost/function/function_base.hpp index 321ec67..c36f387 100644 --- a/include/boost/function/function_base.hpp +++ b/include/boost/function/function_base.hpp @@ -73,7 +73,13 @@ namespace boost { namespace python { namespace objects { # define BOOST_FUNCTION_NO_ENABLE_IF #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 { #if defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730 && !defined(BOOST_STRICT_CONFIG) diff --git a/include/boost/function/function_template.hpp b/include/boost/function/function_template.hpp index d0e569a..1faa00d 100644 --- a/include/boost/function/function_template.hpp +++ b/include/boost/function/function_template.hpp @@ -561,9 +561,7 @@ namespace boost { f1.swap(f2); } -#if !defined (BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \ - && !defined(BOOST_BCB_PARTIAL_SPECIALIZATION_BUG) \ - && (BOOST_STRICT_CONFIG || !defined(__SUNPRO_CC) || __SUNPRO_CC > 0x540) +#if !defined(BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX) #if BOOST_FUNCTION_NUM_ARGS == 0 #define BOOST_FUNCTION_PARTIAL_SPEC R (void)