Smart D-Ptr in KCoreAddons

David Faure faure at kde.org
Tue Aug 27 07:31:14 UTC 2013


On Tuesday 27 August 2013 09:08:24 Ivan Čukić wrote:
> > Well, if it's so useful, why would it be an over-stretch to have it in Qt?
> 
> Maybe it's just me, but I don't see d-ptr idiom as something ubiquitous in
> C++/Qt world, as it is in KDE. 

Heh? Every single class in Qt has a d ptr.

> How many people write libs and care about ABI

All of Qt itself, and all the libs based on Qt...

> Maybe Thiago could chime in on whether Qt is a place for something like
> this?

Yeah, ask him (not sure he monitors this list).

> > And yeah if this class is incompatible with private class hierarchies,
> > that
> > fact should be documented in big fat letters in the documentation.
> 
> As I noted in my previous mail, it does support it now - it was one of the
> frequent requests (requested 3 times :) ) - a simple constructor that can
> receive a pointer to the private class as well as arguments for constructing
> it.

Ah, OK. Sorry, I missed that then.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list