Summary
This episode compares the C++20 standard format library with the standalone {fmt} library it's based on. Jason highlights key differences including availability (std::format only in Visual Studio vs. {fmt} available for all compilers), functionality (std::format lacks print functions until C++23), API stability (std::format moves with the C++ standard and maintains ABI stability), feature set ({fmt} offers more utility functions), and constexpr support ({fmt} supports compile-time formatting while std::format does not). The episode also demonstrates the awkward code needed to print to console with std::format.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[expected]100% match -
[c.files]40% match -
[format.functions]40% match