20 Dec
2012
20 Dec
'12
11:30 p.m.
Hello, I have got a a C library function call, which defines a function: typedef int (*CFunction) (State* K); So I would like to use boost::bind / boost::function to create the binding to a class method: boost::function<CFunction>( boost::bind(&MyClass::myMethod, this) ) so that I can use the class method with the CFunction signature. I would like to call a class method with the object context like a C function. Can anybody help me to create a correct binding? Thanks Phil