Boost logo

Boost :

From: Sofus Mortensen (list_at_[hidden])
Date: 2001-12-05 05:52:08


Hi,

MSVC6/Dinkumware supports conforming reverse_iterator even though MSVC6
does not support partial specialisation. Hence I believe lines 53-60 of
boost/array.hpp should be changed from:

#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) &&
!defined(BOOST_MSVC_STD_ITERATOR)
        typedef std::reverse_iterator<iterator> reverse_iterator;
        typedef std::reverse_iterator<const_iterator>
const_reverse_iterator;
#else
        // workaround for broken reverse_iterator implementations
        typedef std::reverse_iterator<iterator,T> reverse_iterator;
        typedef std::reverse_iterator<const_iterator,T>
const_reverse_iterator;
#endif

to

#if !defined(BOOST_MSVC_STD_ITERATOR)
        typedef std::reverse_iterator<iterator> reverse_iterator;
        typedef std::reverse_iterator<const_iterator>
const_reverse_iterator;
#else
        // workaround for broken reverse_iterator implementations
        typedef std::reverse_iterator<iterator,T> reverse_iterator;
        typedef std::reverse_iterator<const_iterator,T>
const_reverse_iterator;
#endif

Best regards,

Sofus Mortensen

Comet - Grunge free COM programming in C++
http://www.lambdasoft.dk/comet


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