Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-01-31 12:40:33


Hi,

One of my unit tests is failing because following code throw an exception
(gcc 3.2.3 linux):

#include <list>
#include <string>

int main()
{
    std::list<char> l;

    l.push_back( 'a' );
    l.push_back( 'b' );
    l.push_back( 'c' );

    std::string( l.begin(), l.end() );

    return 0;
}

Does it supposed to work? Is there workarounds?

Gennadiy


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