This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: template parameters cannot be friends
- From: "naje" <najeiv at ukr dot net>
- To: llewelly at xmission dot com,gcc-help at gcc dot gnu dot org
- Date: Fri, 21 May 2004 18:42:56 +0300
- Subject: Re: template parameters cannot be friends
- Reply-to: "naje" <najeiv at ukr dot net>
Hi,
> typedefs and template parameters are not allowed to be friends. 14.5.3
> describes the constructs allowed in a friend declaration in a
> class template, and typedefs and template parameters are not
> amoung them.
but it's working with typedef's
can anybody explain need of this?
> I think this is unfortunate, but it's rare to need this feature.
it would be ok, if i can replace it by something else
Thanks.