Boost logo

Boost Users :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2008-05-15 04:40:14


Bryan Green <bryan.d.green <at> nasa.gov> 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?

--
Alexander

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net