Boost logo

Boost :

From: kensai_at_[hidden]
Date: 2001-07-27 02:28:38


I tried using the iterator_adaptors library tonight and ran into some
compilation problems on VC++ 6 and the Dinkum 3.08 STL. After a bit
of searching I discovered that undefining BOOST_MSVC_STD_ITERATOR
solved my compilation problems. In config.hpp I changed this block:

# elif defined(_CPPLIB_VER) && (_CPPLIB_VER >= 306)
        // full dinkumware 3.06 and above
# define BOOST_NO_HASH
# define BOOST_NO_STD_ITERATOR_TRAITS
# ifndef _GLOBAL_USING // can be defined in yvals.h
# define BOOST_NO_STDC_NAMESPACE
# endif
# define BOOST_MSVC_STD_ITERATOR

to this:

# elif defined(_CPPLIB_VER) && (_CPPLIB_VER >= 306)
        // full dinkumware 3.06 and above
# define BOOST_NO_HASH
# define BOOST_NO_STD_ITERATOR_TRAITS
# ifndef _GLOBAL_USING // can be defined in yvals.h
# define BOOST_NO_STDC_NAMESPACE
# endif
# if( _CPPLIB_VER < 308 )
# define BOOST_MSVC_STD_ITERATOR
# endif

This uncovered a small bug: difference_type is defined twice in
detail/iterator.hpp, both on lines 350 and 352. Removing one of the
typedefs fixed the rest.


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