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

List:       kde-devel
Subject:    Re: c++ question: code duplication across classes
From:       Frans Englich <englich () kde ! org>
Date:       2006-09-21 10:29:04
Message-ID: 200609211029.04964.englich () kde ! org
[Download RAW message or body]

On Wednesday 20 September 2006 07:57, 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.

That seems less efficient to me, since that would increase object size for 
both classes. For the fixed one, it's unnecessary.


Cheers,

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