The IDE complains to me that thread does not contain the number of parameters that I am passing it. This is because there are too many of them, I believe...
I had this same issue when I was using the standard library for threads, but do to compatibility issues, I need to use the Boost::threads. HERE is the link to my previous question where someone explained that the issue was caused by veriadic templates.
This was indeed the issue, however, after switching to boost threads, that error comes back and changing the veriadic max does not fix it.
this is my thread declaration
boost::thread db(writeToDB, coordString, time, std::to_string(id), imageName, azimuth, att_pitch, att_roll, yaw, cam_pitch, cam_roll);
EDIT:
Here is how I tried the bind function:
boost::thread db(boost::bind(::writeToDB, coordString, time, std::to_string(id), imageName, azimuth, att_pitch, att_roll, yaw, cam_pitch, cam_roll));
And the current IDE is Visual Studio 2013, however it needs to be compatible with Visual Studio 2008
Also here is the actual error I am recieveing:
ERROR:
Error 6 error C2661: 'boost::thread::thread' : no overloaded function takes 11 arguments c:\users\hewittjc\desktop\final project\project1\clientexample.cpp 174 1 Project1
The IDE
? What is the actual error?