I want to pass(from one class to another) a member function as a parameter and then for that member function to be called in a separate thread.
This seems to be a common error and given solutions involve making the member function's class object available to the calling class or making the member function static, however I cant seem to implement any of these solutions into the code below.
Can I request that any answers include a working version of the code below.
Error C2893 Failed to specialize function template'unknown-type std::invoke(_Callable &&,_Types &&...) noexcept()'
Error C2672 'std::invoke': no matching overloaded function found
to call a member function you need an object (which is kind of what the error message is saying)
not sure if bind() is the best, or what's the difference between binding this or *this