Boost logo

Boost :

From: David Sankel (camio_at_[hidden])
Date: 2004-02-05 16:49:39


  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);
        boost::tuple<float,float> i =
            boost::lexical_cast<boost::tuple<float,float> > ( theString );
        std::cout << "Exception Thrown" << std::endl;


David J. Sankel

Boost list run by bdawes at, gregod at, cpdaniel at, john at