static friends
Leo Savernik
l.savernik at aon.at
Thu Aug 21 21:59:52 BST 2003
Am Donnerstag, 21. August 2003 22:18 schrieb Rolf Magnus:
> On Thursday 21 August 2003 22:15, Leo Savernik wrote:
[...]
>
> First do the normal declaration, then the friend declaration. I.e.:
>
> static void foo();
>
> class bar {
> friend void foo();
> };
Yeah, thanks! That did it :-)
Though I now get a "`void foo()' declared `static' but never defined" warning
in every other compilation unit including the class, but I can safely ignore
this.
mfg
Leo
More information about the kfm-devel
mailing list