I thought this would be easy, but it's not working the way I expected. What is the correct syntax here?
TemplateClass.h
template <typename T>
class TemplateClass
{
T & operator[](size_t n);
TemplateClass.cpp
#include "TemplateClass.h"
template <typename T>
T & TemplateClass::operator[](size_t n)
{
// member declaration not found
}