
13 Jan
2009
13 Jan
'09
4:21 p.m.
Vladimir Batov <batov <at> people.net.au> writes:
int value = boost::lexical_cast(some-string, -1); if (value == -1) conversion failed.
I know that you know this but lexical_cast was designed to be constistent with {static,const,reinterpret}_cast<Target>(source). It doesn't have to be named lexical_cast. Most likely you're converting from a string, you could name it from_string or something similar. -- Alex