Recent updates to C++ in versions C++20 and C++23 introduce many new features that make programming in C++ more efficient and elegant. This post explores various examples of these features, including advanced string formatting inspired by the Python fmt library, using fold expressions for clean code, and employing std::expected for error handling without exceptions. Additionally, it demonstrates operations with bit manipulation, filesystem interactions, and logging with source locations.
Sort: