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

List:       kde-devel
Subject:    Re: c++ question: code duplication across classes
From:       Benoit Jacob <jacob () math ! jussieu ! fr>
Date:       2006-09-21 11:07:59
Message-ID: Pine.LNX.4.64.0609211307250.18959 () galois3 ! math ! jussieu ! fr
[Download RAW message or body]


nono, I didn't say that I was going for virtual getters!

I'm following your advice and going for the CRTP.

Benoit

On Wed, 20 Sep 2006, Sylvain Joyeux wrote:

> If you go for virtual getters, better have m_width and m_height in the base
> class and initialize it differently in both templates.
> -- 
> Sylvain
>
>>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
>
 
>> 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