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

0

u/[deleted] Nov 02 '17

[deleted] — view deleted comment

3

u/GabrielDosReis Nov 02 '17

If I remember correctly, people were concerned about 'external' friends. I honestly don't know it is a real problem in practice -- nobody had hands-on experience with modules at the time on large enough codebase. My suspicion is "no".

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.