Possible Duplicate:
How to compile Templates located in different files in C++?
I want to make a class template with a member function template.
If I code it inline (where I declare it) it works fine, but if I want to code it outline (like the example bellow) I get a error that says "'Example ::func' : unable to match function definition to an existing declaration"
template <typename T>
class Example {
public:
template <typename F>
void func(F &f);
};
template <typename T, typename F>
void Example<T>::func(F &f) {
//My code
}