What’s the difference between ( this ) and ( std::ref(*this) )

  c++, std, stdthread

I used to create a thread in this way

std::thread(&A::Func, this);

But I find there’s another way

std::thread(&A::Func, std::ref(*this));

What’s the difference between them?

Source: Windows Questions C++

LEAVE A COMMENT