Topic: templates for many purposes.
Author: pjl@graceland.att.com (Paul J. Lucas)
Date: Tue, 29 Mar 1994 13:34:08 GMT Raw View
In <CnEroA.3ns@world.std.com> miket@world.std.com (Michael Trachtman) writes:
>Are there any pending proposals to allow things like ?
>class A {
> /* Specify a whole bunch of related friends in one stroke */
> friend template<class A> do_something(A a);
> private:
> ...
>};
Yes (except, as always, the template specification comes first;
cfront allows this now).
I use this in my code all the time (which implies that my code
is not portable to platforms other than cfront--right now, I
don't care).
>Are there any reasons why this should not be allowed ?
No.