#include <iostream>
#include <thread>

volatile int run = true;

using namespace std;
class thA
{
    public:
    int fun(int a, int b, int c)
    {
        return a + b + c;
    }
    int fun()
    {
        cout << "Hello World" << endl;
        run = false;
        return 0;
    }
};
int main()
{
    thA a;

    using func = int (thA::*)(void);

    thread classAAA( func(&thA::fun), a);

    classAAA.detach();
    while(run){}
    return 0;
}
