15 May
2008
15 May
'08
6:56 p.m.
Alexander Nasonov writes:
Bryan Green
writes: string s = "(1 2 3)"; point p; stringstream iss;
It's covered by FAQ http://www.boost.org/doc/libs/1_35_0/libs/conversion/lexical_cast.htm#faq
Try inserting 'iss >> noskipws;' here.
if (!(iss << s).fail()) { if (iss >> p && iss.get() == char_traits<char>::eof()) cout << p << endl; }
Can you please submit a bug and assign it to the tuple maintainer?
Thanks, I had overlooked that in the FAQ. http://svn.boost.org/trac/boost/ticket/1920 -bryan