Say I have an object called myObject of class myClass. It has a function
void myFunction()
What is the syntax to call this function with a thread?
I tried
std::thread myThread(myObject.myFunction)
but I'm given a syntax error and can't seems to find the correct syntax.
The error message is:
function "std::thread::thread(const std::thread &)" cannot be referenced -- it is a deleted function
Thanks for any help.