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
3
u/not_a_novel_account cmake dev Mar 09 '26
The point is to only import what you need. Obviously if you change, ie, a class definition all importers need to rebuild with the new definition. This is no different than headers. If you merely change a function definition in an implementation, no one rebuilds except that implementation partition.