Boost logo

Boost :

From: Ralf W. Grosse-Kunstleve (rwgk_at_[hidden])
Date: 2007-10-29 14:12:57


I'm testing Boost.Python compilation with the latest g++ 4.3.0
(svn rev 129691). It fails because ext/hash_set is not available.
On 2007-10-18 it was moved to backward/hash_set (gcc svn rev 129442).
The patch below restores the Boost.Python compilation.
Is this an OK adjustment?
Ralf

Index: boost/config/stdlib/libstdcpp3.hpp
===================================================================
--- boost/config/stdlib/libstdcpp3.hpp (revision 40556)
+++ boost/config/stdlib/libstdcpp3.hpp (working copy)
@@ -68,6 +68,11 @@
 # define BOOST_HAS_SLIST
 # define BOOST_HAS_HASH
 # define BOOST_SLIST_HEADER <ext/slist>
+# 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 list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk