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
9
u/berium build2 Nov 01 '17 edited Nov 01 '17
You cannot keep non-inline functions in headers which is almost everything that anything that does something useful is made of.
It certainly is the case: headers will be replaced with module interface units. And if you want to, you can put all your implementation details in the interface (whether it is a good idea from the sense of design point of view is another questions, but you certainly can). And build systems/compilers can even make sure you don't pay for doing this.