[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with g++ 4.0.2 (templates, friends and inheritance)
From: |
Emanuel Ziegler |
Subject: |
Re: Problems with g++ 4.0.2 (templates, friends and inheritance) |
Date: |
Fri, 02 Dec 2005 18:46:53 +0100 |
User-agent: |
Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) |
On Fri, 02 Dec 2005 17:53:13 +0100 Maurizio Loreti wrote:
> well, the diagnostic is clear; g++ needs a prototype in scope of the
> function to be declared friend.
Ok, that works. Thanks! But why does it apply to templates only? Without
the template my version works fine without any problems.
> for your second problem, have a look to the point 2 of the "C++
> templates FAQ" at http://womble.decadentplace.org.uk/c++/template-faq.html
Mhmm, that means that it is a principle problem. Looks like I have to live
with the unhandy notation :(
Thanks for Your help,
Emanuel