Revert to using <utility> for std lib detection for now, TR1 will have to do something different.

[SVN r31341]
This commit is contained in:
John Maddock
2005-10-16 11:43:26 +00:00
parent 18bfd50438
commit ea654649f1
7 changed files with 8 additions and 13 deletions

View File

@ -12,17 +12,12 @@
// locate which std lib we are using and define BOOST_STDLIB_CONFIG as needed: // locate which std lib we are using and define BOOST_STDLIB_CONFIG as needed:
// we need to include a std lib header here in order to detect which // we need to include a std lib header here in order to detect which
// library is in use, use <iosfwd> and <limits> as they're about the smallest // library is in use, use <utility> as it's about the smallest
// of the std lib headers - do not rely on this header being included - // of the std lib headers - do not rely on this header being included -
// users can short-circuit this header if they know whose std lib // users can short-circuit this header if they know whose std lib
// they are using. // they are using.
// PLEASE NOTE that the config system must not include any of the headers
// that are modified by TR1 (<memory>, <functional> or <utility>) not even
// indirectly. If they do so then the Boost TR1 implementation will be unusable.
//
#include <iosfwd> #include <utility>
#include <limits>
#if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION) #if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
// STLPort library; this _must_ come first, otherwise since // STLPort library; this _must_ come first, otherwise since

View File

@ -12,7 +12,7 @@
// Dinkumware standard library config: // Dinkumware standard library config:
#if !defined(_YVALS) && !defined(_CPPLIB_VER) #if !defined(_YVALS) && !defined(_CPPLIB_VER)
#include <iosfwd> #include <utility>
#if !defined(_YVALS) && !defined(_CPPLIB_VER) #if !defined(_YVALS) && !defined(_CPPLIB_VER)
#error This is not the Dinkumware lib! #error This is not the Dinkumware lib!
#endif #endif

View File

@ -10,7 +10,7 @@
// Comeau STL: // Comeau STL:
#if !defined(__LIBCOMO__) #if !defined(__LIBCOMO__)
# include <iosfwd> # include <utility>
# if !defined(__LIBCOMO__) # if !defined(__LIBCOMO__)
# error "This is not the Comeau STL!" # error "This is not the Comeau STL!"
# endif # endif

View File

@ -8,7 +8,7 @@
// Modena C++ standard library (comes with KAI C++) // Modena C++ standard library (comes with KAI C++)
#if !defined(MSIPL_COMPILE_H) #if !defined(MSIPL_COMPILE_H)
# include <iosfwd> # include <utility>
# if !defined(__MSIPL_COMPILE_H) # if !defined(__MSIPL_COMPILE_H)
# error "This is not the Modena C++ library!" # error "This is not the Modena C++ library!"
# endif # endif

View File

@ -9,7 +9,7 @@
// Metrowerks standard library: // Metrowerks standard library:
#ifndef __MSL_CPP__ #ifndef __MSL_CPP__
# include <iosfwd> # include <utility>
# ifndef __MSL_CPP__ # ifndef __MSL_CPP__
# error This is not the MSL standard library! # error This is not the MSL standard library!
# endif # endif

View File

@ -10,7 +10,7 @@
// Rogue Wave std lib: // Rogue Wave std lib:
#if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER) #if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER)
# include <iosfwd> # include <utility>
# if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER) # if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER)
# error This is not the Rogue Wave standard library # error This is not the Rogue Wave standard library
# endif # endif

View File

@ -10,7 +10,7 @@
// STLPort standard library config: // STLPort standard library config:
#if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) #if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
# include <iosfwd> # include <utility>
# if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) # if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
# error "This is not STLPort!" # error "This is not STLPort!"
# endif # endif