On Thu, Aug 30, 2007 at 08:59:19AM +0200, Abdelrazak Younes wrote:
> Andre Poenitz wrote:
> >I am tempted to commit the attached patch. Shaves ~22s off a release
> >build, i.e. roughly 1.2% of total time. Not exactly much, but a dozen of
> >such trivial changes will show...
> 
> Couldn't we just remove clone() and implement a copy operator instead?
> The instantiation will happen anyway...

Not really. 'clone()' operates on base class pointers and returns a full
copy of the derived class object. Invoking a copy contructor would only
copy the 'base class slice' of the derived object.

Andre'

Reply via email to