-
-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: getting string format in C++ 20 style? #327
Comments
I'll certainly put it on my ToDo list (which is a bit long at the moment!) |
That sounds amazing :) No worries no hurries, and many thanks :) . |
It's possible to use fmtlib directly with the specific set of definitions for reducing the binary size of the library. |
https://github.com/fmtlib/fmt seems to be great and well tested but use "heavily" the std library. |
It may be possible to fork the library and modify it (where possible) to use the ETL, and include it in the ETL. |
I looked at the code and the use of the STL is very extensive. |
C++ 20 received new ways to format strings, in a python-like way (https://en.cppreference.com/w/cpp/utility/format/format), for example:
This looks amazing, as this is both safe, simple to read and write, and starts to be nearly a "de facto standard" across languages (I finally do not need to get confused when switching back and forth between python and c++, hooray!).
I think that the etl provides something quite similar thanks to the
to_string
API (https://www.etlcpp.com/to_string.html). However, would it be possible to get something that is fully similar / compliant to the C++ 20 std::format? That would make it even easier to use, would reduce brain overhead switching between etl and "standard" C++ 20.The text was updated successfully, but these errors were encountered: