2021-10-05 14:26:28 +00:00
|
|
|
# Exercise: Hello {fmt} on Godbolt
|
|
|
|
|
|
|
|
## Background: {fmt}
|
|
|
|
|
2021-10-06 07:39:10 +00:00
|
|
|
"{fmt} is an open-source formatting library providing a fast and safe alternative to C stdio and C++ iostreams."
|
|
|
|
[From the {fmt} GitHub page](https://github.com/fmtlib/fmt)
|
|
|
|
|
|
|
|
In C++20 we are getting parts of this functionality in [std::format](https://en.cppreference.com/w/cpp/utility/format).
|
|
|
|
|
|
|
|
In C++23 we might get `std::print`.
|
|
|
|
|
2021-10-05 14:26:28 +00:00
|
|
|
## Exercise
|
|
|
|
|
|
|
|
1. Play with Hello World on [Godbolt](https://godbolt.org/z/8oxsGG8WM)
|