[Boost-bugs] [Boost C++ Libraries] #1982: BOOST_HAS_SLIST assumed when using STLport

Subject: [Boost-bugs] [Boost C++ Libraries] #1982: BOOST_HAS_SLIST assumed when using STLport
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-06-02 12:49:17


#1982: BOOST_HAS_SLIST assumed when using STLport
--------------------------------------------+-------------------------------
 Reporter: Chris Oldwood <gort_at_[hidden]> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: config
  Version: Boost 1.35.0 | Severity: Problem
 Keywords: |
--------------------------------------------+-------------------------------
 The <boost/config/stdlib/stlport.hpp> header file contains the following
 lines which assumes that if you are using STLport then the slist type is
 available:-

 //
 // We always have SGI style hash_set, hash_map, and slist:
 //
 #define BOOST_HAS_HASH
 #define BOOST_HAS_SLIST

 However, if you have configured STLport to disable extensions (e.g. for
 portability) with the _STLP_NO_EXTENSIONS config setting in
 <stlport\stl\config\user_config.h> then you receive the following error
 under VC++ 8.0, when including for example, <boost/algorithm/string.hpp>,

 ...\STLport-5.1.5\stlport\slist(31) : fatal error C1189: #error : The
 slist class is an STLport extension.

 I presume the following is all that is required to fix this:-

 #if !defined(_STLP_NO_EXTENSIONS)
 # define BOOST_HAS_HASH
 # define BOOST_HAS_SLIST
 #endif

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1982>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC