C
CHAFIK Wassime
hi
how are u dealing with the heat????
i tried to compile the following code
/////////////////////////////////////////////////////////////////////////
template <typename V >
class MyTemplate{
public:
//typedef typename V::NestedType MyType;
static typename V::NestedType myStaticField;
};
class MyV{
public:
class NestedType {};
static void dummy(){};
};
typedef MyTemplate<MyV> MyTemplateInstance;
template<typename V>
MyV::NestedType MyTemplateInstance::myStaticField = MyV::NestedType();
int main(int argc, char* argv[]){
return 0;
}
////////////////////////////////////////////////////////////////////////
but i get the error:
testtemplate.cpp:17: error: template arguments to
‘MyTemplate<MyV>::myStaticField’ do not match original template
‘MyTemplate<V>::myStaticField
and i don't understand why...
thanx in advance for your help
how are u dealing with the heat????
i tried to compile the following code
/////////////////////////////////////////////////////////////////////////
template <typename V >
class MyTemplate{
public:
//typedef typename V::NestedType MyType;
static typename V::NestedType myStaticField;
};
class MyV{
public:
class NestedType {};
static void dummy(){};
};
typedef MyTemplate<MyV> MyTemplateInstance;
template<typename V>
MyV::NestedType MyTemplateInstance::myStaticField = MyV::NestedType();
int main(int argc, char* argv[]){
return 0;
}
////////////////////////////////////////////////////////////////////////
but i get the error:
testtemplate.cpp:17: error: template arguments to
‘MyTemplate<MyV>::myStaticField’ do not match original template
‘MyTemplate<V>::myStaticField
and i don't understand why...
thanx in advance for your help