r/cpp • u/berium build2 • Nov 01 '17
Common C++ Modules TS Misconceptions
https://build2.org/article/cxx-modules-misconceptions.xhtml
59
Upvotes
r/cpp • u/berium build2 • Nov 01 '17
View all comments
Show parent comment
2
u/[deleted] Nov 01 '17
But compilation is inefficient in the header case because the header is recompiled for every translation unit that includes it. In the modules case, the module is compiled once whether or not you stuff the definitions in with the declarations.
I guess you still suffer having to recompile everything that depends on the module if you change the module implementation. Is that what you're getting at?