Include <utility> for some versions of gcc's library.

Sometimes gcc's <cstddef> doesn't define the C++ macros, so check for it
and include <utility> in that case. Also remove a workaround from
container_fwd.hpp

Fixes #2924.

[SVN r52246]
This commit is contained in:
Daniel James
2009-04-08 10:56:22 +00:00
parent 833e50fe8f
commit 1271821c44
2 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,7 @@
// Rogue Wave library:
# define BOOST_STDLIB_CONFIG "boost/config/stdlib/roguewave.hpp"
#elif defined(__GLIBCPP__) || defined(__GLIBCXX__)
#elif defined(__GLIBCPP__) || defined(__GLIBCXX__) || defined(_GLIBCXX_CSTDDEF)
// GNU libstdc++ 3
# define BOOST_STDLIB_CONFIG "boost/config/stdlib/libstdcpp3.hpp"

View File

@ -9,6 +9,10 @@
// config for libstdc++ v3
// not much to go in here:
#if !defined(__GLIBCXX__) && !defined(__GLIBCPP__)
#include <utility>
#endif
#ifdef __GLIBCXX__
#define BOOST_STDLIB "GNU libstdc++ version " BOOST_STRINGIZE(__GLIBCXX__)
#else