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, In>(Out&, const In&) bool try_lexical_cast<Out, In>(const In&, Out&) boost::optional<Out> try_lexical_cast<Out, In>(const In&)
Another possibility is to provide a parameter that is returned if the conversion fails, something like this: Out lexical_cast<Out, In>(const In& input, const Out& failed_output)