Boost logo

Boost :

Subject: Re: [boost] Is there a special reason to use inline before template functions?
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2008-12-08 14:20:12


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...


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk