5 Dec
2011
5 Dec
'11
2:32 p.m.
On Mon, Dec 5, 2011 at 12:44 AM, John M <b1tn3wsr34d3r@gmail.com> wrote:
What is the correct syntax for creating a boost::bimap<SDLKey, boost::function<void(boost::shared_ptr<Player>, bool)> >?
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.
Yes, but does std::map<boost::function<void(boost::shared_ptr<Player>, bool)>, SDLKey> also compile? Both must be true to get bimap functionality.