Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualÁlvaro

Posted 15 November 2012 - 02:05 AM

Constalks is right. If you need to pass a callback to a piece of code, make sure it accepts an std::function, and then you can use it with function pointers or with functors of any type. This is particularly useful if you want the pass a member function of a particular object as a callback.

#1Álvaro

Posted 15 November 2012 - 02:04 AM

Constalks is right. If you need to pass a callback to a piece of code, make sure it accepts an std::function, and then you can use it with function pointers or with functors of any type. This is particularly useful if you want the callback to be a member function of a particular object.

PARTNERS