I am doing something that is probably silly, but it would be nice if it worked.
I am attempting to specialize types in a way that I need my own lookup structure that
Sounds like you should either just make them global and not worry about it. Perhaps using namespaces is what you want?
You could add a non-templated base class and move lookupTable
into that class:
class Base
{
protected:
static map<string, internal_t> lookupTable
};
template<class T, int N>
class SpecialArray : Base
{
//...
};