class MyClass{
private:
std::thread* mythread;
void ThreadMain();
public:
MyClass();
Start();
}
void MyClass::Start(){
// This time mythread is of type std::thread*
mythread = new std::thread(&MyClass::ThreadMain,this); // One could use std::unique_pointer instead.
}