[PATCH] KSharedPtr operator== problem

Alex Merry kde at randomguy3.me.uk
Wed Oct 1 22:58:09 BST 2008


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!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ksharedptr.diff
Type: text/x-patch
Size: 734 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20081001/b8476d15/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20081001/b8476d15/attachment.sig>


More information about the kde-core-devel mailing list