This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems with templates




>>> <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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]