Opened 14 years ago

Closed 14 years ago

#1982 closed Bugs (fixed)

BOOST_HAS_SLIST assumed when using STLport

Reported by: Chris Oldwood <gort@…> Owned by: John Maddock
Milestone: To Be Determined Component: config
Version: Boost 1.35.0 Severity: Problem
Keywords: Cc:

Description

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

Change History (1)

comment:1 by John Maddock, 14 years ago

Resolution: fixed
Status: newclosed

Confirmed, patch applied.

Note: See TracTickets for help on using tickets.