I have a templated class, that can have a map type as template parameter.
template<typename map_t> class my_class
{
map_t my_map;
};
Now I’d like the value type of the map, to be equal to this class.
my_class<std::map<std::string, my_class<...> > > problems;
However, this is impossible to declare. How can I achieve the same effect?
Since you want to be generic in the container type, the closest I have been able to find (if I understand well your intent) is:
and use