$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2006-01-27 19:37:36
On Jan 27, 2006, at 7:10 PM, Robert Ramey wrote:
> I've noticed that the following has been added to the
> config/stdlib/libstdcpp3.hpp
>
> #if defined(__GLIBCXX__) || (defined(__GLIBCPP__) &&  
> __GLIBCPP__>=20020514)
> // GCC >= 3.1.0
> #  define BOOST_STD_EXTENSION_NAMESPACE __gnu_cxx
> #  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>
> #endif
Yep, that was my fault...
> My question is: How is BOOST_SLIST_HEADER intended to be used.
>
> At first I thought that one was expected to do something like the  
> following:
>
> #ifdef BOOST_HAS_SLIST
> #include BOOST_SLIST_HEADER
> #endif
I've been using it like this:
#ifdef BOOST_HAS_SLIST
#  ifdef BOOST_SLIST_HEADER
#    include BOOST_SLIST_HEADER
#  else
#    include <slist>
#endif
However, the right answer is probably to add this to config/suffix.hpp:
#if defined(BOOST_HAS_SLIST) && !defined(BOOST_SLIST_HEADER)
#  define BOOST_SLIST_HEADER <slist>
#endif
Likewise for the hash_set and hash_map headers.
If nobody objects, I'll make this change so that BOOST_SLIST_HEADER  
becomes useful. (And, of course, I'll document the new functionality).
        Doug