toon-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Toon-members] Commit message


From: Gerhard Reitmayr
Subject: Re: [Toon-members] Commit message
Date: Fri, 10 Jul 2009 16:45:34 +0200

with templated functions the linker has to resolve it, only explicit specialisations fall under the usual single definition rule (I think). thats also why the default template parameter lifting trick works for static members...

Gerhard

On 10 Jul 2009, at 16:17, Georg Klein wrote:

Not the first one - I made a similar change to reference.hh in april, but that was for a templated function.

In general are we being naughty by not putting "static" or "inline" in front of templated functions? It seems the compiler/linker lets us get away with it, but I'm not sure why.

On 10 Jul 2009, at 15:04, E. Rosten wrote:

On Fri, 10 Jul 2009, Georg Klein wrote:

``Non-templated func needs to be static or global, or the linker complains''

Make that static or inline. Do we have a policy preference on this?

Not as far as I can tell. I think this is the first one, so the policy is now `inline' :-)

-Ed

--
(You can't go wrong with psycho-rats.)(http://mi.eng.cam.ac.uk/ ~er258)

/d{def}def/f{/Times s selectfont}d/s{11}d/r{roll}d f 2/m{moveto}d -1
r 230 350 m 0 1 179{ 1 index show 88 rotate 4 mul 0 rmoveto}for/s 12
  d f pop 235 420 translate 0 0 moveto 1 2 scale show showpage



_______________________________________________
Toon-members mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/toon-members

--
Gerhard Reitmayr
MIL, Engineering Department, Cambridge University
http://mi.eng.cam.ac.uk/~gr281/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]