Use of Boost library classes in kdecore?
Thiago Macieira
thiago at kde.org
Sun Jul 8 00:09:29 BST 2007
David Jarvie wrote:
>Having looked at implementing this, I realise that it won't work. The
>KTimeZone base class objects provided by the API must be polymorphic,
> i.e. a KTimeZone object/pointer must act like a pointer to that it can
> represent any derived class object as well, and call the appropriate
> virtual functions. Giving KTimeZone a QExplicitlySharedDataPointer
> d-pointer doesn't provide this, and would still be necessary to use
> pointers to KTimeZone to achieve polymorphism, which bypasses the
> ref-counting and is no better than the current implementation.
The alternative is to flatten the hierarchy and remove the need for
derived classes in application code.
What descendants of KTimeZone exist and why must they be used? Is the
application author supposed to derive from KTimeZone?
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070708/5f8917a8/attachment.sig>
More information about the kde-core-devel
mailing list