I know that by default member functions of a class are inlined
class d {
public:
int a() {
return 1545435;
}
};
And I also know that it's not allowed to declare functions in headers unless they are inlined.
Is there a way to declare a function in a header's class that is not inlined?
For example
file.h
class d {
public:
int a();
};
int d::a() {
do
a
lot
of
stuff
lots
of
code
...
}
Will it still be inlined?
And is there a keyword to explicitly specify to make any function not-inlined? (I know that by default normal functions are not inlined, but still!)