Have read through many aricels now and do not get it, nor found a compendium. Im totally confused!
Here the rules I found out:
is that correct????
A) inline keyord now is obsolete in C++11, the Compiler always decides on ist own
int add(int x) { return x+1; }
inline int add(int x) { return x+1; }
do the same!
B) The function Body has to be placed in the class declaration OR if not a class member, in the cpp file where its used.
.h:
virtual int add(int x);
.cpp
int myclass::add(int x) { return x+1 }
never will be inlined ???
Visual Studio 2013, C++ and some MFC
(We have many dump functions that do nothing or only return true/false in our C++ Code)
What I have tried:
have read through many articels, web Forums but did´n get it.
And? Is there a way to find out what the Compiler did?
thanks Folks!