I'm having this error: error c2064: term does not evaluate to a function taking 0 arguments. The thing is the function takes 0 arguments and I call 0 arguments, and I don't understand what's wrong.
RWLock* rwl = new RWLock();
std::thread t1(&RWLock::read);
That's the call to the function. And this is the function:
void read();
Does somebody know what the problem is? Thanks in advance!