This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
problem of template inheritance on g++
- From: "amol" <gajewar dot amol at spsoftindia dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Wed, 10 May 2006 13:22:44 +0530
- Subject: problem of template inheritance on g++
Following is the code which works on windows but can't work with g++
template < class my_type>
class mytypedef
{
public :
typedef my_type new_type;
};
template <class my_type>
class sample: public mytypedef < my_type >
{
public :
new_type var;
};
Error : new_type doest not name a type.
Why is it happening?
What is solution for this problem?
Amol Gajewar