[PATCH] KSharedPtr operator== problem

Thiago Macieira thiago at kde.org
Sat Oct 4 11:49:24 BST 2008

Christoph Bartoschek wrote:
>? ? //The friend is defined within the class. But this is not a
>? ? //member function.
>? ? friend void friendFunction(MyClass & t) {
>? ? ? ++t.i;
>? ? }

That's not always possible. Imagine it were a conversion function from two 
different template types, and the second one isn't defined yet.

And it doesn't cover the case for another template class (not MyClass).

  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20081004/adb63753/attachment.sig>

More information about the kde-core-devel mailing list