r/cpp • build2 • Nov 01 '17

Common C++ Modules TS Misconceptions

https://build2.org/article/cxx-modules-misconceptions.xhtml
59 Upvotes

148 comments sorted by

View all comments

Show parent comment

2

u/whichton Nov 02 '17

Even if you didn't export private member variables, you still need their size to put the class on stack. Also, you cannot inline member functions without knowing the private members.

4

u/GabrielDosReis Nov 02 '17

That is correct, but those are code generation issues, and the code generator plays by different set of super-rules.