[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Static stuff..
From: Malte Starostik <malte () kde ! org>
Date: 2002-12-31 13:32:04
[Download RAW message or body]
On Tuesday 31 December 2002 12:26, Christophe Prud'homme wrote:
> On Tuesday 31 December 2002 06:09 am, Dirk Mueller wrote:
> > > Shouldn't all that stuff be in the anonymous namespace instead?
> >
> > Nope. Those are still exported and the long symbol makes the symbol
> > lookup far worse.
>
> then what about unnamed namespace
>
> namespace {
> blah blah blah
> }
>
> behaves like static !
That's what I meant.
There's one difference to static though: while static has internal linkage,
namespace {} has external linkage. This is a problem as Dirk noted wrt
relocation time, OTOH the advantage is that such symbols can be used as
template arguments while static ones can't.
As this apparently wasn't a real problem in kdelibs by now, it's probably the
best thing to stick with static in the libs until the linker issues are
resolved, didn't think about those.
-Malte
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic