【发布时间】:2014-11-13 22:28:44
【问题描述】:
好的,我正在尝试在 c++ 中创建一个运行函数storePose(); 的线程,该函数需要九个参数作为双精度数。每次我尝试创建线程时,它都会抱怨参数。我将在下面发布我的代码。我不知道为什么这不起作用。提前致谢
代码:
std::thread t(storePose,x_position, y_position, z_position, azimuth, att_pitch, att_roll, yaw, cam_pitch, cam_roll);
t.detach();
错误:
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
【问题讨论】:
-
'Intellisense' 什么?请您至少指定您的实际 IDE!
-
对不起 Visual Studio 2012
标签: c++ multithreading visual-studio-2012