Boost logo

Boost :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2007-05-10 01:47:38


Michael Marcin wrote:
> In the same vein as this discussion I was very suprised that
> lexical_cast<bool>("true") threw bad_lexical_cast on me.
>
> Can't this be made to work by simply putting
> "stream.setf(std::ios::boolalpha);" inside of lexical_stream's constructor?

This change would break lexical_cast<bool>("1").

-- 
Alexander Nasonov
http://nasonov.blogspot.com

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