~/talk

C++ Modules: Getting Started Today

Talkat CppCon 2023 · on Monday, 2023-10-02· at 15:15· Adams, 6700 North Gaylord Rockies Boulevard· [devops-and-delivery]
slides:none on file

C++20 modules see broad support in major compilers and CMake now offers practical integration, but they require the absolute latest toolchain (MSVC C++23 mode, clang 17+/trunk, recent GCC, Ninja or MSBuild) and some CMake file sets magic. Modules change the build graph: compilation emits an binary module interface (BMI) alongside objects and the build system does a two‑pass dependency scan, which can shrink incremental rebuilds but breaks if headers and imports mix (watch the global module fragment rules). Expect rough edges yet measurable wins.

AI-written summary · about

  1. 0:00Introduction
  2. 0:38Overview
  3. 6:17How Modules Work
  4. 8:47Exports
  5. 15:27Primary
  6. 17:02Interface Implementation
  7. 19:02Interface Partitions
  8. 23:30Building Modules
  9. 26:37Additional Magic
  10. 27:20Requirements
  11. 28:58Rule of Thum
  12. 29:59File Extensions
  13. 31:20Build Systems
  14. 34:40Compiler
  15. 38:26Build System
  16. 41:12Advice
  17. 41:47Global Module Fragment
  18. 44:16Mixing Headers and Modules
  19. 48:07Include Guard
  20. 50:01Export using declarations
  21. 51:20Export using headers
  22. 52:23Clean interface
  23. 54:06Conclusion
  24. 56:39Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.