This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problems with templates
- To: <llewelly at dbritsch dot dsl dot xmission dot com>
- Subject: Re: Problems with templates
- From: "Hubert Felber" <Felber at abacus dot ch>
- Date: Tue, 13 Jun 2000 09:45:36 +0200
- Cc: <gcc-help at gcc dot gnu dot org>
>>> <llewelly@dbritsch.dsl.xmission.com> 06/13/00 08:44am >>>
On Tue, 13 Jun 2000, Hubert Felber wrote:
> Hi,
>
> Can anybody please help me?
>
> I have problems compiling a nested template class, I get the error message:
>
> Wrapper.h:10: declaration of 'class T'
> Wrapper.h:6: shadows template parm 'class T'
>
> I am using g++ 2.95.2. Using another compiler on a non linux platform, this template compiles fine.
>
> How can I change my code that it compiles fine with gcc 2.95.2 ?
>
> Here is the snippet:
>
>
> template <class T> class CWrapper // line 6
> {
>
> template <class T> class CCounted //line 10
^^
<<Change the name of this template parameter.
That's all? Uff.... Thanks for helping.
Hubert