Boost logo

Boost-Commit :

From: dgregor_at_[hidden]
Date: 2008-07-09 10:26:28


Author: dgregor
Date: 2008-07-09 10:26:27 EDT (Wed, 09 Jul 2008)
New Revision: 47265
URL: http://svn.boost.org/trac/boost/changeset/47265

Log:
Fix hash_set and hash_map headers for GCC 4.3, from Ralf W. Grosse-Kunstleve. Fixes #1462
Text files modified:
   branches/release/boost/config/stdlib/libstdcpp3.hpp | 9 +++++++--
   1 files changed, 7 insertions(+), 2 deletions(-)

Modified: branches/release/boost/config/stdlib/libstdcpp3.hpp
==============================================================================
--- branches/release/boost/config/stdlib/libstdcpp3.hpp (original)
+++ branches/release/boost/config/stdlib/libstdcpp3.hpp 2008-07-09 10:26:27 EDT (Wed, 09 Jul 2008)
@@ -68,6 +68,11 @@
 # define BOOST_HAS_SLIST
 # define BOOST_HAS_HASH
 # define BOOST_SLIST_HEADER <ext/slist>
-# define BOOST_HASH_SET_HEADER <ext/hash_set>
-# define BOOST_HASH_MAP_HEADER <ext/hash_map>
+# if defined(__GLIBCXX__) && __GLIBCXX__ < 20071018 // GCC <= 4.3.0
+# define BOOST_HASH_SET_HEADER <ext/hash_set>
+# define BOOST_HASH_MAP_HEADER <ext/hash_map>
+# else
+# define BOOST_HASH_SET_HEADER <backward/hash_set>
+# define BOOST_HASH_MAP_HEADER <backward/hash_map>
+# endif
 #endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk