From Jason Turner
Watch on YouTube

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.

Resources

Tags