running a class function as a thread

I have a header file with a bunch of functions. I want to create a thread using the <threads> package and am using

1
2
3
4
5
6
7
8
9


void myclass::functionX() {

}

void myclass::function() {
std::thread tr(myclass::functionX);
}


I am getting the error "no instance of std::thread::thread matches the argument list argument types are (void());
Topic archived. No new replies allowed.