
8 Dec
2008
8 Dec
'08
7:20 p.m.
Michael Marcin wrote:
Andrey Semashev wrote:
I didn't look at the code, but if these member functions are declared in the class definition, they are already inline and this keyword is not needed.
Some compilers disable default inlining under certain configurations. GCC has -fno-default-inline for instance. Some libraries might explicitly put inline there to support these configurations.
Well, I guess the one who uses such configurations does so for a reason (i.e. he wants these functions *not* to be inline), so the keyword still doesn't make sense to me. Unless it works around some compiler bug...