Sharing static members between template instantiations? (impossible?)
问题 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 is essentially global (but ideally encapsulated as a class variable), but I want the objects to be type safe, so they are parameterized. Consequently, I have, essentially template<class T, int N> class SpecialArray { //... private: static map<string, internal_t> lookupTable } and for whatever reason, I didn't think until such