Original Post
Greetings! I was wondering if it is possible to use static methods in templates? I would like to have a template with static method Find that returns the derived or specialized type. Here is the idea: template class myResource { public: virtual void DoSomething() { cout << "Template class" << endl; } static myResource* Find(LPSTR FileName) { ..now the method would look up for the object in a list and return it. so far it works ok. } } //now the specialization template<> class myResource { public: void DoSomething() { cout << "Template derived" << endl; } } typedef myResource intres; my problem is, i can not call intres::Find("test.txt") because it will not find the static Find method. Any ideas?