[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fundamental template inheritance problem.
From: |
Artak Avetyan |
Subject: |
Re: fundamental template inheritance problem. |
Date: |
Fri, 13 Jul 2001 00:28:37 +0500 |
Right code is :
template <class T>
class A
{
};
template <class T>
class B : public A<T> <<== this is the reason of your error
{
};
Regards,
Artak.
Thomas Maeder wrote:
> Federico David Sacerdoti wrote:
> >
> > template <class T>
> > class A {
> >
> > };
> >
> > template <class T>
> > class B : public class A {
>
> My gcc 2.95.3 says here:
>
> derived.cpp:7: parse error before `{'
> derived.cpp:7: `struct A' redeclared as different kind of symbol
> derived.cpp:2: previous declaration of `template <class T> class A<T>'
>
> _______________________________________________
> Bug-gplusplus mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-gplusplus