
On 5/31/07, Martin Bonner <Martin.Bonner@pi-shurlok.com> wrote:
From: boost-bounces@lists.boost.org on behalf of Peter Dimov Sent: Thu 31/05/2007 18:04 To: boost@lists.boost.org Subject: Re: [boost] [guid] - review results? - inline missing
Hartmut Kaiser wrote:
You need to add an explicit 'inline' specifier to any function defined out of class but in a header, regardless if it's a templatized function or not.
I don't think that this is true. ________________________________
<end quote> Why don't you think this is true?
If you have the same function defined in two translation units (because it is dragged into both via #include), it's a violation of the One Definition Rule unless the definitions have inline.
Or unless it's a template function, which is what I'm almost sure Peter was referring to. --Michael Fawcett