forked from boostorg/config
Need to use <limits> as well as <iosfwd> to be sure of detecting std lib version.
[SVN r31339]
This commit is contained in:
@ -12,12 +12,17 @@
|
|||||||
// 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> as it's about the smallest
|
// library is in use, use <iosfwd> and <limits> as they're 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 <iosfwd>
|
||||||
|
#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
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
// generic SGI STL:
|
// generic SGI STL:
|
||||||
|
|
||||||
#if !defined(__STL_CONFIG_H)
|
#if !defined(__STL_CONFIG_H)
|
||||||
# include <iosfwd>
|
# include <limits>
|
||||||
# if !defined(__STL_CONFIG_H)
|
# if !defined(__STL_CONFIG_H)
|
||||||
# error "This is not the SGI STL!"
|
# error "This is not the SGI STL!"
|
||||||
# endif
|
# endif
|
||||||
|
Reference in New Issue
Block a user