5 Dec
2011
5 Dec
'11
5:44 a.m.
What is the correct syntax for creating a boost::bimap<SDLKey, boost::function<void(boost::shared_ptr<Player>, bool)> >? (SDLKey is part of the SDL library. It is an enumeration. See here http://www.libsdl.org/cgi/docwiki.cgi/SDLKey) The code above does not compile, generating long cryptic template-related errors. Using an std::map<SDLKey, boost::function<void(boost::shared_ptr<Player>, bool)> > works, however. I could use some help overcoming this obstacle.