
19 Jun
2011
19 Jun
'11
11:44 a.m.
Hi! I use this code to control if a sdt::string is a "float" value: string value("3.14"); try { lexical_cast<float>(value); } catch(bad_lexical_cast& ) { cout<<value<<" is not a float number\n"; } I always obtain a bad_lexical_cast exception. Why? -- View this message in context: http://boost.2283326.n4.nabble.com/lexical-cast-and-float-tp3609634p3609634.... Sent from the Boost - Users mailing list archive at Nabble.com.