I am using thread on VC 2012 (very close to VC 2010). When the argument list is short, it works fine. However, when I add a function with more arguments, the compiler indicates "no thread constructor match the argument list....etc", and when I reduce the number of arguments, it works.
Is there a limit about thread constructor? I didn't see this in ISO C++11 standard. How can I fix this limit? Or maybe it's better that I split my function in question into two to pass it...?
Thanks for your reply. I think it's a problem related to the number of arguments. As I explained, when I put more than 5 arguments, I cannot work, indicates:
error C2661: 'std::thread::thread' : no overloaded function takes 10 arguments