1 // (C) Copyright John Maddock 2001.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 // See http://www.boost.org/libs/config for most recent version.
8 // MACRO: BOOST_HAS_SLIST
10 // DESCRIPTION: The C++ implementation provides the (SGI) slist class.
12 #if defined(__GLIBCXX__) || (defined(__GLIBCPP__) && __GLIBCPP__>=20020514) // GCC >= 3.1.0
13 # define BOOST_STD_EXTENSION_NAMESPACE __gnu_cxx
19 #ifndef BOOST_STD_EXTENSION_NAMESPACE
20 #define BOOST_STD_EXTENSION_NAMESPACE std
23 namespace boost_has_slist{
25 template <class T, class Alloc>
26 void foo(const BOOST_STD_EXTENSION_NAMESPACE::slist<T,Alloc>& )
33 BOOST_STD_EXTENSION_NAMESPACE::slist<int> l;