template <typename vec1, typename vec2>
class fakevector
{
public:
};
template <class A>
class caller
{
public:
struct typeList
{
struct typeOne
{
};
};
typedef fakevector<typeList::typeOne,int> __methodList;
};
The error messages appeared:
Error: type / value mismatch in argument 1 in the template parameter list for the 'fakevector' template class
Error: expected type, received 'caller :: typeList :: typeOne
If the template is removed from the class of the caller, it will be reported without errors
like this
class call {public: struct typeList {....};
I do not know the reason. Thank you very much!
source
share