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

From the language standpoint, the inline specifier doesn't force the compiler to inline the function. But I guess some compilers could provide guarantees that go beyond what the spec says.


I was talking about __forceinline for MSVC and things like it for other compilers. One's which for better or worse will make your function inlined.

One thing that I did find out what that even if you inline or force inline a function, that if you have it exported from a DLL or in a class that is exported as a DLL, then the function might still be called non-inline.




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

Search: