C++ inline functions using GCC - why the CALL?

后端 未结 7 675
感动是毒
感动是毒 2020-12-28 17:55

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

7条回答
  •  甜味超标
    2020-12-28 18:08

    I faced similar problems and found that it only works if the inline function is written in a header file.

提交回复
热议问题