문제

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)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top