r/cpp • u/holyblackcat • Mar 09 '26
The compilation procedure for C++20 modules
https://holyblackcat.github.io/blog/2026/03/09/compiling-modules.html
103
Upvotes
r/cpp • u/holyblackcat • Mar 09 '26
View all comments
Show parent comment
1
u/slithering3897 Mar 09 '26
Yes, just like with includes,
.cppfiles would not be part of the interface.But, if the lib translates what would have been multiple public include files into partitions for one module, then lib importers have no choice but to import all partitions, they can't depend on only one partition.