[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: c++ question: code duplication across classes
From:       Benoît_Jacob <jacob () math ! jussieu ! fr>
Date:       2006-09-23 6:56:29
Message-ID: 200609230856.29179.jacob () math ! jussieu ! fr
[Download RAW message or body]

Le samedi 23 septembre 2006 01:54, Thiago Macieira a écrit :
> The implicit assignment operator for the derived class calls the
> assignment operator for all the base classes, then for all the member
> variables.

Ah,ok, that explains it. Thanks.

>
> >BTW: Is it OK to hijack kde-devel for general c++ questions? Sorry if
> > it's not.
>
> No, not really, but I suppose it's ok as long as we don't abuse it. I've
> learnt a lot from this thread already (CRTP, for instance). So, every
> once in a while, it's good to refresh our knowledge of C++.
>
> I wouldn't like to see kde-devel degenerate into basic C++ questions, like
> how to inherit or what the difference between virtual and non-virtual
> functions is.

OK, as you fully answered my question, let's consider that to be the end of 
this thread. I'll go find a c++ forum for my future questions.

Benoit
 
>> 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