Boost logo

Boost :

From: Jean-Claude Dauphin (jc.dauphin_at_[hidden])
Date: 2003-05-26 11:23:38


Hi,

I can't understand why:
    std::string s(" 0");
    double val;
    try {
                    val = boost::lexical_cast<double> (s);
    }
    catch (boost::bad_lexical_cast &)
   {
   }
gives a bad_lexical_cast throw?

I apologize you for yr time,

JCD


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk