How is it possible to store handler/object of any type in container?
I would like to store boost::bind in container for example:
std::map<std::string, boost::bind> some_map;
some_map["something"] = boost::bind(&X::f, 1);
some_map["something_else"] = boost::bind(&X::r, 1, _1);
How can I do that?
Thank you very much for help