Jump to content

  • Log In with Google      Sign In   
  • Create Account

14 years ago on June 15th Gamedev.net was first launched! We want to thank all of you for being part of our community and hope the best years are ahead of us. Happy birthday Gamedev.net!

#ActualBitMaster

Posted 08 October 2012 - 01:24 AM

Anything returned by boost::bind or its more limited std equivalents is not a function pointer. It's a (rather complicated) set of templated nested objects.

You will need to use either a free function or a static function in InputManager. I'm not fluent in GLFW but you can probably make InputManager a singleton (because GLFW only supports exactly one window) or there will be some way to store something pointer-like (for storing the this pointer of the relevant instance) as user data.

#2BitMaster

Posted 08 October 2012 - 01:23 AM

Anything returned by boost::bind or its more limited std equivalents is not a function pointer. It's a (rather complicated) set of templated nested objects.

You will need to use either a free function or a static function in InputManager. I'm not fluent in GLFW but you can probably make InputManager a singleton (because GLFW only supports exactly one window) or there will be some way to store something pointer-like as user data.

#1BitMaster

Posted 08 October 2012 - 01:23 AM

Anything returned by boost::bind or its more limited std equivalents is not a function pointer. It's a (rather complicated) set of templated nested objects.

You will need to use either a free function or a static function in InputManager. I'm not fluent in GLFW but you can probably make InputManager a singleton (because GLFW only supports exactly one Window) or there will be some way to store something pointer-like as user data.

PARTNERS