0
// a.h
strcut A
{
void simpleMethod();
void anotherMethod() {...; simpleMethod(); ...;}
};
// a.cpp
#include "a.h"
void A::simpleMethod() { one_line_simple_implementation; }
我的问题是:simpleMethod()
在anotherMethod()
由现代编译器的优化内联?