Boost logo

Boost :

From: Mike Thompson (miket.thompson_at_[hidden])
Date: 2001-06-10 23:58:32

Dear Boost,

While working with boost:python (excellent!), I have found a
small problem with Boost's 'config.hpp' file (I think).

It showed up for me while working with VC6++ (SP5) and 3.08 of
Dinkum's C++ Library.

I found that 'BOOST_MSVC_STD_ITERATOR' was not getting
defined. This meant that 'BOOST_CSTD_' was getting defined as
'std' instead of <nothing>. This, in turn, mean that code fragments
        int n = BOOST_CSTD::strlen(s)
were not getting compiled because strlen() is in the global
namspace with my arrangement.

I made the following adjustment to 'boost/config.hpp'
and everything worked fine for me:

// starting at line 463 of boost/config.hpp

# elif defined(_CPPLIB_VER) && (_CPPLIB_VER >= 306)
        // full dinkumware 3.06 and above
# define BOOST_NO_HASH
# ifndef _GLOBAL_USING // can be defined in yvals.h
# endif
# define BOOST_MSVC_STD_ITERATOR // <---- I added this line
# else

I hope this helps (and does not simply show me to be ignorant).


Mike Thompson E-Mail: mike.thompson_at_[hidden]
Day 8 Technology P/L Phone: 0414 514 415
                         Geography: Sydney, Australia

Boost list run by bdawes at, gregod at, cpdaniel at, john at