Please look at the following C++0x lambda related code:
typedef uint64_t (*WEIGHT_FUNC)(void* param); typedef std::map Callba
Try with (not tested) :
#include typedef std::function< int64_t (void*) > weight_func; typedef std::map CallbackTable;
I don't think there is any other way to do this than to use std::function or equivalent.