S
shuisheng
Dear All,
I have template classes as following
template<class T>
struct A
{
typedef T DataType;
DataType valueA;
};
template<class T>
struct B
{
T:ataType valueB;
}
When compiling, it said that T:ataType is not a type. Any method I
can get the data type from the template argument?
I appreciate your help.
Best wishes!
Shuisheng
I have template classes as following
template<class T>
struct A
{
typedef T DataType;
DataType valueA;
};
template<class T>
struct B
{
T:ataType valueB;
}
When compiling, it said that T:ataType is not a type. Any method I
can get the data type from the template argument?
I appreciate your help.
Best wishes!
Shuisheng