formatstring icon indicating copy to clipboard operation
formatstring copied to clipboard

`ios::hexfloat` shouldn't be used

Open frederick-vs-ja opened this issue 1 year ago • 0 comments

This line attempts to use the non-conforming extension std::ios::hexfloat.

https://github.com/panzi/formatstring/blob/8c7cb73cd69e29c3289924de7bb51e28cd032f79/src/formatvalue.cpp#L563

We should use the standard manner, i.e., replacing it with std::ios::fixed | std::ios::scientific. See also cppreference.

Also, conditional compilation shouldn't be used because such ability is added in C++11.

frederick-vs-ja avatar Mar 28 '24 06:03 frederick-vs-ja