dimanche 30 novembre 2014

C++11 How to store pointers-to-methods in std::unordered_map?


Vote count:

0




I want to store in std::unordered_map<object, std::vector<pointer>> pair of object and vector of pointers to methods of that object. object can refer to any class T and pointer must contain pointers to methods from T instance. I must be able to call those methods later. I tried to use boost::any, but I was not able to call methods later. How can I accomplish it?



asked 1 min ago







C++11 How to store pointers-to-methods in std::unordered_map?

Aucun commentaire:

Enregistrer un commentaire