|
Boost : |
From: David Sankel (camio_at_[hidden])
Date: 2004-02-05 16:49:39
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk