S
Stanley Rice
If a member function is defined within the class body, the member function
is default inlined. However, if I want to define the function is a separate
file with other un-inlined function, Lippman said in C++ Primer that it is
ok. Just prefix the inline keyword in preceed the function definition.
However, It doesn't work for my compiler, gcc 4.4.3, and my compile option
is -Wall -Wextra -g -std=c++98
Thanks
is default inlined. However, if I want to define the function is a separate
file with other un-inlined function, Lippman said in C++ Primer that it is
ok. Just prefix the inline keyword in preceed the function definition.
However, It doesn't work for my compiler, gcc 4.4.3, and my compile option
is -Wall -Wextra -g -std=c++98
Thanks