Supposed I have a base class with a templated member function:
class Base {
public:
template <typename T>
void Loop(T* input) {
InnerLoop(input);
}
protected:
template <typename T>
void InnerLoop(T* input) {...}
};
I want to have a child class that implements the InnerLoop
function, but it gives me a linker error
class Child : public Base {
void InnerLoop(ConcreteType* input) {...}
};
Any way to make this work?