I have been testing inline function calls in C++.
Thread model: win32 gcc version 4.3.3 (4.3.3-tdm-1 mingw32)
Stroustrup in The C++ Program
Whether to inline is up to the compiler. Is it free to ignore the inline hint. Some compilers have a specific keyword (like __forceinline in VC++) but even with such a keyword virtual calls to virtual member functions will not be inlined.
__forceinline