Skip to content

Commit 716c7d4

Browse files
committed
Implement string and integral formatters without IO streams
The goal is for BasicStringFormatter to not depend on IO streams at all. IO streams are inherently slow due to localization. With C++20, std::to_chars can be used to convert arithmetic types to strings. However, major compilers do not yet support std::to_chars for floating point types. There's probably plenty of room here for optimizations, but this is a good enough start to removing IO streams. Further, with this implementation, string and integral types now support center alignment. Floating point types will still fall back to default alignment.
1 parent cc8c19f commit 716c7d4

File tree

3 files changed

+516
-192
lines changed

3 files changed

+516
-192
lines changed

0 commit comments

Comments
 (0)