1 Oct 23:56
[PATCH] KSharedPtr operator== problem
From: Alex Merry <kde <at> randomguy3.me.uk>
Subject: [PATCH] KSharedPtr operator== problem
Newsgroups: gmane.comp.kde.devel.core
Date: 2008-10-01 21:58:09 GMT
Subject: [PATCH] KSharedPtr operator== problem
Newsgroups: gmane.comp.kde.devel.core
Date: 2008-10-01 21:58:09 GMT
KSharedPtr's two non-member operators (operator==(T*, const KSharedPtr<T>&) and the equivalent operator!=) are not friends of the class, so these comparisons fail to compile. Since some forward-declarations and friending of template functions is involved, I wanted to make sure (a) I didn't do anything stupid and (b) no-one knows of any problems with old gcc versions or other platforms before I commit, especially as it's a candidate for 4.1.3. Anyone see any issues? Patch attached. Alex -- -- Proud KDE hacker: http://www.kde.org Get KDE 4.1 - out now!
Index: ksharedptr.h =================================================================== --- ksharedptr.h (revision 866760) +++ ksharedptr.h (working copy) @@ -33,6 +33,10 @@ typedef QSharedData KShared;(Continue reading)
RSS Feed