I’m trying to create a 2D sparse array with elements of type set<char*> (that’s the STL set class). I’ve got a template class Cell<T> (T is some type) that would be perfect for implementing this.
Both classes work fine on their own, but I can’t compose them. That is, Cell<char*> works, and set<char*> works, but Cell<set<char*>> doesn’t work. And I need Cell<Cell<set<char*>>> to work. Shouldn’t that work? Am I running up against some obscure language constraint?
This is in MS VC6. Switching over to anything other than MS.net would be impractical, cause we’re an MS shop.
Any help would be immensely appreciated.