I understand you can use the inline keyword or just put a method in a class declaration ala short ctor or a getter method, but does the compiler make the final decision on when to inline my methods?
For instance:
inline void Foo::vLongBar()
{
//several function calls and lines of code
}
Will the compiler ignore my inline declaration if it thinks it will make my code inefficient?
As a side issue, if I have a getter method declared outside my class like this:
void Foo::bar() { std::cout << "baz"; }
Will the compiler inline this under the covers?