2011/8/17 Thomas Zander <zan...@kde.org>: > Most C++ libraries use this, but I suggest to take a look at kdelibs for > inspiration.
Implementation of p-pointers not always the same in the whole kdelibs. I preferred not to use neither Q_DECLARE_PRIVATE nor inheritance of *Private classes (as described at http://techbase.kde.org/Policies/Library_Code_Policy/Shared_D-Pointer_Example). You can check what I've done: http://commits.kde.org/libkvkontakte/094b12d2e2f2b6c73e3721607a909079722f93a2 I still need to polish the code before "freezing" the ABI, for example I'm planning to remove a couple of classes. -- Alexander Potashev