try_numeric_convert (akin to try_lexical_convert)
5 Mar
2015
5 Mar
'15
12:26 a.m.
We're using the new try_lexical_convert function in our code so we can encapsulate errors in the standard manner used in our project. A counterpart for numeric_cast would be useful. Is any such thing in the works?
23 Mar
23 Mar
3:32 p.m.
2015-03-05 4:26 GMT+04:00 Chris Franz
We're using the new try_lexical_convert function in our code so we can encapsulate errors in the standard manner used in our project. A counterpart for numeric_cast would be useful. Is any such thing in the works?
There's no such work in progress. However you can take a look here https://github.com/boostorg/lexical_cast/blob/master/include/boost/lexical_c... See the `noexcept_numeric_convert` method. It's really close to what you're requesting. -- Best regards, Antony Polukhin
3537
Age (days ago)
3555
Last active (days ago)
1 comments
2 participants
participants (2)
-
Antony Polukhin
-
Chris Franz