13 Dec
2013
13 Dec
'13
10:14 a.m.
On 12/11/2013 09:36 PM, Antony Polukhin wrote:
bool try_lexical_cast
(Out&, const In&) bool try_lexical_cast (const In&, Out&) boost::optional<Out> try_lexical_cast (const In&)
Another possibility is to provide a parameter that is returned if the
conversion fails, something like this:
Out lexical_cast