|
Boost : |
From: Lie-Quan Lee (llee1_at_[hidden])
Date: 2001-09-25 19:27:25
I compile the lexical_cast_test.cpp without or with
BOOST_NO_STRINGSTREAM using gcc (2.96, coming with
redhat 7.1). Neither of them passed completely.
I attached the error messages.
% g++ -I/u/llee/boost lexical_cast_test.cpp -o lct
% ./lct
[lexical_cast<std::string>] exception: bad lexical cast: source type value could not be interpreted as target
[lexical_cast<int>] exception: bad lexical cast: source type value could not be interpreted as target
[lexical_cast<char>] exception: bad lexical cast: source type value could not be interpreted as target
[lexical_cast<double>] exception: bad lexical cast: source type value could not be interpreted as target
[lexical_cast<bool>] exception: bad lexical cast: source type value could not be interpreted as target
5 tests: 0 passed, 5 failed
% g++ -DBOOST_NO_STRINGSTREAM -I/u/llee/boost lexical_cast_test.cpp -o lct_nosstream
% ./lct_nosstream
[lexical_cast<std::string>] passed
[lexical_cast<int>] passed
[lexical_cast<char>] passed
[lexical_cast<double>] passed
[lexical_cast<bool>] failed: 2001
5 tests: 4 passed, 1 failed
% g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk