
5 Feb
2004
5 Feb
'04
9:49 p.m.
Hello, I'm guessing this has something to do with the unsetf(std::ios::skipws) call. Anyway, the following code seems contradictory since it's output is "Exception Thrown". Has anyone else come across this? #include <iostream> #include <boost/tuple/tuple.hpp> #include <boost/tuple/tuple_io.hpp> #include <boost/lexical_cast.hpp> int main() { boost::tuple<float,float> aTuple(2.2f,3.3f); std::string theString = boost::lexical_cast<std::string>(aTuple); try { boost::tuple<float,float> i = boost::lexical_cast<boost::tuple<float,float> > ( theString ); } catch(...) { std::cout << "Exception Thrown" << std::endl; } } Thanks, David J. Sankel