好的我正在尝试在c ++中创建一个运行函数storePose();
的线程,该函数将九个参数作为双精度。每次我尝试创建线程时都会抱怨参数。我将在下面发布我的代码。我不知道为什么这不起作用。先谢谢
CODE:
std::thread t(storePose,x_position, y_position, z_position, azimuth, att_pitch, att_roll, yaw, cam_pitch, cam_roll);
t.detach();
ERROR GIVEN:
12 IntelliSense: no instance of constructor "std::thread::thread" matches the argument list
argument types are: (<unknown-type>, double, double, double, double, double, double, double, double, double)
修改 对不起,我忘了提到我使用的是Visual Studio 2012