Ogre::any_cast<std::map<Rail>::iterator>
It takes Ogre::any_cast<std::map<Rail>
and says too few arguments etc. How can I fix it (other than obvious typedef aliasing)?
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)