C++ Modules - Getting started today
summary
C++20 modules are usable now: compilers provide usable support (clang 18–19 recommended, GCC 14 recent but rough, MSVC toolset 1934+), and CMake adds file sets and a cxx modules file‑set (CMake 3.28, modular stdlib needs 3.30). Build systems emit BMI files and effectively compile sources twice to order module builds; header coexistence uses the global module fragment and tricks like pre‑includes or export using to avoid name attachment.
AI-written summary · about
chapters (9)
- 0:00C++ modules intro
- 1:50Header file problems
- 7:26How modules help
- 18:28Module source types
- 26:51Build systems for modules
- 35:23Dependency tracking
- 42:58Adopting modules
- 57:32Future of modules
- 1:00:00Q&A on naming
related talks
01h 09mC++ Modules: Getting Started Today
01h 00mSo, you want to use C++ Modules ... cross-platform?
01h 01mimport CMake; // Mastering C++ Modules
01h 02mModern CMake Modules
01h 01mC++ Modules and Large-Scale Development (Part 1)
56mImplementing C++ Reflection Using the New C++20 Tooling Opportunity: Modules
01h 00m“Deploying C++ modules to 100s of millions of lines of code"
01h 17mThe Importance of the C++ Build System Target Model
