Re:Killing the C++ Modules Technical Specification
by petters on Wednesday October 11, 2017 @12:05PM
(#15450804)
Doesn't this prevent a lot of inlining? Or perhaps the compiler is smart enough in most cases?
[ Parent
| on HN ]
Re:Killing the C++ Modules Technical Specification
by colanderman on Wednesday October 11, 2017 @12:11PM
(#15450840)
No change to inlining. The definitions are still in the headers and the compiler will still eagerly inline them if they are defined in the class declaration (as typical) or defined outside the class declaration and explicitly marked inline (less typical).
(Whether inlining of non-trivial methods is desirable is - and in fact recently was - a discussion for another HN story.)