Original Post
I inject my dll into the process space of a game, and Im trying to create a function pointer to a function defined inside the games dll. If I use normal function pointers, it will work:
typedef void(__stdcall *FunctionPtr_t)(void);
FunctionPtr_t myFuncPtr = &SomeFunc But if I try to use boost::function, I get compile time errors: boost::function<void __stdcall(void)> myBoostFuncPtr; error C2079: 'myBoostFuncPtr' uses undefined class 'boost::function<Signature>' If I remove the __stdcall it compiles just fine... Any ideas on how to get this to work?