[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: questions about c++ templates
From: Kleag <kleag () free ! fr>
Date: 2006-08-19 10:11:08
Message-ID: 200608191211.11397.kleag () free ! fr
[Download RAW message or body]
Le samedi 19 août 2006 04:12, Craig Howard a écrit :
> On Friday 18 August 2006 14:09, Kleag wrote:
> > Well, with this code, templates have no influence, at least for nm: with
> > or without them, there is no difference except for addresses.
>
> Right, but that's significant, because Child::pure() wasn't referenced, so
> it shouldn't have been created. Or so I thought.
>
Sorry, I missed the point. Interestingly, recompiling the template version
with -O2, references to g() are removed from the nm output while pure() is
still present. Also the number of constructors and destructors change.
Kleag
--
KsirK - a turn-based strategy game for KDE
http://gna.org/projects/ksirk
KGraphViewer - a GraphViz dot graphs viewer
http://gna.org/projects/kgraphviewer
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic