boostorg / lexical_cast

General literal text conversions, such as an int represented as a string, or vice versa
https://boost.org/libs/lexical_cast
34 stars 58 forks source link

Support for other number format #20

Closed teeks99 closed 8 years ago

teeks99 commented 8 years ago

C++ supports a few other number formats (for integers) as literals

It would be ideal if lexical_cast matches these.

apolukhin commented 8 years ago

This will not be implemented because it's against the basic design of a lexical_cast and it changes the behavior of existing programs.

For more involved conversions, such as where precision or formatting need tighter control than is offered by the default behavior of lexical_cast, the conventional std::stringstream approach is recommended.