From a10341d270817594ae04778051f40dc586fb3fda Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 18 May 2002 11:31:51 +0000 Subject: [PATCH] Added new config options - not yet quite finished - test cases to come. [SVN r13972] --- include/boost/config/compiler/borland.hpp | 5 +++++ include/boost/config/compiler/metrowerks.hpp | 1 + include/boost/config/compiler/vacpp.hpp | 1 + include/boost/config/posix_features.hpp | 5 +++++ include/boost/config/suffix.hpp | 8 ++++++++ 5 files changed, 20 insertions(+) diff --git a/include/boost/config/compiler/borland.hpp b/include/boost/config/compiler/borland.hpp index 1045e499..da0d9371 100644 --- a/include/boost/config/compiler/borland.hpp +++ b/include/boost/config/compiler/borland.hpp @@ -31,6 +31,7 @@ # define BOOST_NO_PRIVATE_IN_AGGREGATE # define BOOST_NO_SWPRINTF # define BOOST_NO_USING_TEMPLATE +# define BOOST_BCB_PARTIAL_SPECIALIZATION_BUG // we shouldn't really need this - but too many things choke // without it, this needs more investigation: # define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS @@ -58,6 +59,10 @@ # define BOOST_NO_EXCEPTIONS #endif // +// all versions have a : +// +#define BOOST_HAS_DIRENT_H +// // Disable Win32 support in ANSI mode: // #pragma defineonoption BOOST_DISABLE_WIN32 -A diff --git a/include/boost/config/compiler/metrowerks.hpp b/include/boost/config/compiler/metrowerks.hpp index 9d842eda..a1900252 100644 --- a/include/boost/config/compiler/metrowerks.hpp +++ b/include/boost/config/compiler/metrowerks.hpp @@ -25,6 +25,7 @@ # if(__MWERKS__ <= 0x2406) || !defined(BOOST_STRICT_CONFIG) // 7.0 & 7.1 # define BOOST_NO_MEMBER_TEMPLATE_FRIENDS +# define BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS # endif #if !__option(wchar_type) diff --git a/include/boost/config/compiler/vacpp.hpp b/include/boost/config/compiler/vacpp.hpp index 377f295a..c4ef9f18 100644 --- a/include/boost/config/compiler/vacpp.hpp +++ b/include/boost/config/compiler/vacpp.hpp @@ -9,6 +9,7 @@ #define BOOST_NO_MEMBER_TEMPLATE_FRIENDS #define BOOST_NO_INCLASS_MEMBER_INITIALIZATION +#define BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS // // On AIX thread support seems to be indicated by _THREAD_SAFE: // diff --git a/include/boost/config/posix_features.hpp b/include/boost/config/posix_features.hpp index f3412d72..2d9ec29f 100644 --- a/include/boost/config/posix_features.hpp +++ b/include/boost/config/posix_features.hpp @@ -18,6 +18,11 @@ // POSIX version 6 requires # if defined(_POSIX_VERSION) && (_POSIX_VERSION >= 200100) # define BOOST_HAS_STDINT_H +# endif + + // POSIX version 2 requires +# if defined(_POSIX_VERSION) && (_POSIX_VERSION >= 199009L) +# define BOOST_HAS_DIRENT_H # endif // POSIX defines _POSIX_THREADS > 0 for pthread support, diff --git a/include/boost/config/suffix.hpp b/include/boost/config/suffix.hpp index 21350df7..7175f80b 100644 --- a/include/boost/config/suffix.hpp +++ b/include/boost/config/suffix.hpp @@ -77,6 +77,14 @@ # define BOOST_MSVC6_MEMBER_TEMPLATES # endif +// +// Without partial specialization, can't test for partial specialisation bugs: +// +# if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \ + && !defined(BOOST_BCB_PARTIAL_SPECIALIZATION_BUG) +# define BOOST_BCB_PARTIAL_SPECIALIZATION_BUG +# endif + // // Without partial specialization, std::iterator_traits can't work: //