~/talk

2024 Update: C++ Modules - C++ Developers Get Started Today!

Talkat ACCU 2024 · 2024-04-17..04-20· [c-and-cpp]
slides:none on file

Modules are usable now but require careful setup: mainstream compilers and CMake land in 2024 with CMake 3.28, clang 17 and MSVC toolset 1934 (GCC still often needs trunk, Ninja ≥1.11). Builds scan imports then compile, so compilation can run twice and the build graph must respect BMI dependencies. Binary module interfaces are fragile so BMIs must be distributed as source or rebuilt for consumers. Practical tips: use file sets, global module fragment for includes, partitions and export/import re-exports; expect bugs but real projects already work.

AI-written summary · about

  1. 0:00C++ modules overview
  2. 3:59Header-based C++ problems
  3. 9:38What are C++ modules
  4. 17:23Exporting names in modules
  5. 21:00Module interface units
  6. 24:53Module partitions benefits
  7. 29:08Header units limitations
  8. 30:33Building modules with CMake
  9. 41:50Build system challenges
  10. 54:46Tips for modules
  11. 1:05:02Mixing includes and imports
  12. 1:13:33Macros and libraries with modules
  13. 1:20:01Distributing modules
  14. 1:26:07Conclusion and future
~/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.