Boost logo

Boost :

From: Eric Frias (efrias_at_[hidden])
Date: 2003-03-24 09:39:03


I'd like to request that the Visual C++ 7.0 with STLport become a supported
configuration for the regex library. Visual C++ 6.0 with STLport is already
a supported configuration. I get the feeling many people were only using
STLport with vc6 because the bundled STL was broken, and they switched to
the native STL when upgrading to vc7. I use STLport for a different
reason -- I develop software on several platforms and want a consistent STL
across all of the platforms -- so I intend to keep using STLport even though
the bundled STL has been improved.

This support requires two simple changes, and I don't believe either would
complicate maintenance down the road. In
boost/regex/v3/regex_library_include.hpp:

*** regex_library_include.hpp 20 Mar 2003 19:49:39 -0000 1.1
--- regex_library_include.hpp 24 Mar 2003 13:50:04 -0000 1.2
***************
*** 71,76 ****
--- 71,81 ----
     // vc6-stlport:
  # define BOOST_LIB_TOOLSET "vc6-stlport"

+ #elif defined(BOOST_MSVC) && (BOOST_MSVC >= 1300) &&
(defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION))
+
+ // vc7-stlport:
+ # define BOOST_LIB_TOOLSET "vc7-stlport"
+
  #elif defined(BOOST_MSVC) && (BOOST_MSVC == 1200)

     // vc6:

and in libs/regex/build/vc_gen.sh:

*** vc_gen.sh 31 Oct 2002 16:42:31 -0000 1.1
--- vc_gen.sh 21 Mar 2003 20:14:17 -0000 1.3
***************
*** 362,368 ****
  no_single="no"
  subdir="vc7"
  vc6_gen
!

  #
  # remove tmep files;
--- 362,374 ----
  no_single="no"
  subdir="vc7"
  vc6_gen
! #
! # generate vc7-stlport makefile:
! is_stlport="yes"
! out="vc7-stlport.mak"
! no_single="yes"
! subdir="vc7-stlport"
! vc6_stlp_gen

  #
  # remove tmep files;

Running vc_gen.sh will now generate a new file, vc7-stlport.mak, which would
need to be added to the distribution. I don't know if anything needs to be
done with the Jamfiles to support this configuration. I don't think there
is, but I'm not comfortable with the whole Jam-based build system for boost
so someone else should double-check me. Thanks,

Eric


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk