
10 May
2007
10 May
'07
5:47 a.m.
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