[PATCH] KSharedPtr operator== problem

Alex Merry kde at randomguy3.me.uk
Wed Oct 8 23:13:28 BST 2008

On Saturday 04 October 2008 08:29:12 Thiago Macieira wrote:
> In any case, the solution is very simple anyways, invert the comparison:
> template <class T> bool operator== (const T* p, const KSharedPtr<T>& o)
> { return o == p; }
> template <class T> bool operator!= (const T* p, const KSharedPtr<T>& o)
> { return o != p; }

*slaps forehead*

Committed r869408.


Proud KDE hacker: http://www.kde.org
Get KDE 4.1 - out now!

-------------- 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/20081008/86eac913/attachment.sig>

More information about the kde-core-devel mailing list