std::thread with pointer to data member
问题 I was reading through the std::thread documentation at cppreference (not always 100% accurate, I know) and noticed the following definition for the behavior of std::thread when passed a "pointer-to-data-member" (not "pointer-to-member-function") as its first argument ( f ) and an object of the required class as its second argument ( t1 after copying to thread-local-storage): If N == 1 and f is pointer to a member data object of a class, then it is accessed. The value of the object is ignored.