I have a class "InputManager" in which I want to define the callback function that I later provide to GLFW for keyboard callbacks. I am normally using boost::bind for such tasks, but I for some reason cannot get this one to work, and the compile error I cannot read,
The GLFW callback is described in http://www.glfw.org/...ersGuide276.pdf, 4.2.2, declared
typedef void (GLFWCALL * GLFWcharfun)(int,int);
where GLFWCALL is just empty macro.
My member callback is declared as:
void GLFWCALL glfwCharCallback(int, int);
I try to setup the callback like:
bool InputManager::Init(const EngineSettings& engineSettings)
{
glfwSetCharCallback(boost::bind(&InputManager::glfwCharCallback, this, _1, _1));
return true;
}
To which Visual studio gives me a quite long and generic, syntax error. What am I doing wrong in this case with boost bind?
Thanks