The class looks like this:
class WidgetSpec{private: typedef std::map<String, WidgetSpec*> WidgetMap; typedef WidgetMap::iterator WidgetMapIter;};
The problem is the WidgetSpec* in the map.
How do I implement this in a template?
Doing both, gives me errors:
1.
template <class w>class Spec{private: typedef std::map<String, this> SpecMap; typedef SpecMap::iterator SpecMapIter;};
2.
template <class w>class Spec{private: typedef std::map<String, Spec<w>*> SpecMap; typedef SpecMap::iterator SpecMapIter;};
Is there a way, to solve this via templates?
Many thanks
[Edited by - lem on December 13, 2010 9:25:48 AM]