I am trying to create multiple threads in my program and whenever I try to do this
std::thread thread1(threadedfunction);
I get this error: non-standard syntax; use '&' to create a pointer to member
and when I put the &
in like this:
std::thread thread1(&threadedfunction);
I got this error: '&': illegal operation on bound member function expression