Boost logo

Boost :

From: Lie-Quan Lee (llee1_at_[hidden])
Date: 2001-09-25 19:37:29


In gcc-2.96, stringstream is included. By default boost configuration will not
define BOOST_NO_STRINGSTREAM. However, lexical_cast failed as I posted in the
last message. -- Is this also a known issue?

> % 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

 

At Tue, 25 Sep 2001 17:28:09 -0700,
Darin Adler wrote:
>
> on 9/25/01 5:27 PM, Lie-Quan Lee at llee1_at_[hidden] wrote:
>
> > [lexical_cast<bool>] failed: 2001
>
> Yes, there is a bug with lexical_cast to bool in gcc. It's a known problem
> (at least I know about it).
>
> -- Darin
>
>
> Info: http://www.boost.org Unsubscribe: <mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>


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