M
marcomoeller
Hi!
I have something similar to:
--------
template <typename T>
class Base{
public:
typedef T TestType;
};
template <typename TypeParam>
class Derived : public Base<TypeParam > {
public:
TestType member;
};
----------------
and get the following error:
/home/caller/testIt/src/testit.cpp:40: error: 'TestType' does not name
a type
/home/caller/testIt/src/testit.cpp:40: note: (perhaps 'typename
Base<TypeParam>::TestType' was intended)
ok.. it WILL work with that tip... but in reality the baseclass is a
real complex construct, and I DONT what to write it a second time...
A part of the baseclasses job is to provide this types... why isn't it
possible??
THX
Marco
Is there a nice way to handle it, without
I have something similar to:
--------
template <typename T>
class Base{
public:
typedef T TestType;
};
template <typename TypeParam>
class Derived : public Base<TypeParam > {
public:
TestType member;
};
----------------
and get the following error:
/home/caller/testIt/src/testit.cpp:40: error: 'TestType' does not name
a type
/home/caller/testIt/src/testit.cpp:40: note: (perhaps 'typename
Base<TypeParam>::TestType' was intended)
ok.. it WILL work with that tip... but in reality the baseclass is a
real complex construct, and I DONT what to write it a second time...
A part of the baseclasses job is to provide this types... why isn't it
possible??
THX
Marco
Is there a nice way to handle it, without