#include <iostream>
#include <thread>
using namespace std;
struct Test
{
	void run()
	{
		
	}
	
};

void foo() {
    std::shared_ptr<Test> test = std::make_shared<Test>();
    std::thread th(&Test::run, test); // Compiler error

	th.join();
	
}
int main()
{
	
}