protected d-pointers

André Wöbbeking Woebbeking at kde.org
Thu Feb 7 18:22:17 GMT 2008


On Wednesday 06 February 2008, Matthias Kretz wrote:
> Hi,
>
> I suggest we require kdelibs classes to only use protected d-pointers
> so that the shared-d-pointer pattern can be used when needed. Once we
> need to keep BC on Windows we cannot change private members to
> protected members anymore. So we can still do this now...

If necessary you can add a protected ctor later which takes a pimpl 
pointer, no? This should be BC on all platforms.

Hmm, you would still need access to the pimpl in your sub classes.


Cheers,
André




More information about the kde-core-devel mailing list