23 Mar
2015
23 Mar
'15
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