The problem is that std::map
takes at least two template arguments - the key type and the value type. Currently you have std::map<Rail>
. What are you mapping from Rail
to? For example, this would be okay if your iterators are for a std::map
that maps from Rail
to int
(assuming Rail
is not a deduced type):
Ogre::any_cast<std::map<Rail,int>::iterator>(some_any_object)