Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Doesn't this prevent a lot of inlining? Or perhaps the compiler is smart enough in most cases?


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.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: