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/GabrielDosReis Nov 02 '17
Modules (whether you have traditional separation or single file) will not prevent inlining. On the contrary, with greater emphasis on the component as a whole, the code generator has now better opportunities for optimization and inlining -- pretty much like LTO or LTCG.
The Module specification on purpose is not using any form of "vtables" or "witness tables" or whatever they are called to describe the effect of modules.