Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2004-10-01 03:28:57


Subject test fails at runtime with following output:

Running 58 test cases...
../libs/test/test/basic_cstring_test.cpp(419): error in "io_test":
ostr.is_equal( "test" ) failed. Output content: "tes"
../libs/test/test/basic_cstring_test.cpp(419): error in "io_test":
ostr.is_equal( "test" ) failed. Output content: "tes"

*** 2 failures detected in test suite "basic_cstring test"

Interesting lines are:
    bcs1 = "test";
    ...
    ostr << std::setw( 3 ) << bcs1;
    BOOST_CHECK( ostr.is_equal( "test" ) );

Looks like setw manipulator set maximum field width, while it supposed to
set minimum. Is this compiler/STL bug?

Gennadiy.


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