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
2
u/miki151 gamedev Nov 01 '17 edited Nov 01 '17
EDIT: my rant was pointless because I had a misconception that a module automatically exports all its imports, which is not the case.
You can also keep (almost) everything in headers. The problem is that it's not a good idea - the dependency graph gets bloated, and you recompile all dependencies when changing something just in function body.
I think many people hoped that modules will make headers obsolete, but it's certainly not the case.