Boost logo

Boost :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2004-06-28 17:10:43


The file boost/test/detail/basic_cstring/io.hpp contains this workaround
function for GCC 2.95.3:

template<typename CharT>
inline std::ostream&
operator<<( std::ostream& os, basic_cstring<CharT> const& str )
{
    typedef typename basic_cstring<CharT>::mutable_char char_type;
    char_type const* const beg = reinterpret_cast<char_type const* const>(
str.b
egin() );
    char_type const* const end = reinterpret_cast<char_type const* const>(
str.e
nd() );
    os << std::basic_string<char_type>( beg, end - beg );

    return os;
}

What is mutable_char? It doesn't show up anywhere else in Boost.

        Doug


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