boost-function

Storing boost function

Hello, I have to store a list of different boost::function objects. To provide this I'm using boost::any. I have a few functions which takes different functions signatures, pack them into any and then insert into special map with given type. Here is the code: enum TypeEnumerator { e_int, e_float, e_double }; typedef map< st...

Invoking a boost::function through boost::function_base

I have an unordered_map of functions that should be called on an object when an XML file is parsed. I have found that boost::function has a base class named boost::function_base, however as expected I cannot invoke it because I don't have the signuture of the function. Since all of those functions are setter functions, I can guarantee th...