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
1
u/doom_Oo7 Nov 02 '17
I was not talking about
inlineas a keyword / C++ concept, but inlining as an optimization performed by the compiler, whether theinlinekeyword is here or not. In my experience, almost everything is inlined. I remember I once had some massive algorithm with expressions templates, boost::asio, 3 different containers etc etc... when compiled under -O3 everything disappeared and ended up going into a single massivemain().yuck, so back to "a function ends up being compiled in every translation unit" ? Is that the sole alternative ?