在写程序调用c++thread :std::thread t(&ThreeLightCameraParam::readData,dev_fd, flag, _tmpImageParameters);时出现如下错误: error: static assertion failed: std::thread arguments must be invocable after conversion to rvalues
120 | typename decay<_Args>::type...>::value,
改为如下语句编译通过:
std::thread t(std::bind(&ThreeLightCameraParam::readData,&_threeLightCameraParam2,dev_fd, flag));
其中_threeLightCameraParam2是ThreeLightCameraParam的对象。
关于thread 的介绍具体参见:https://blog.csdn.net/ouyangfushu/article/details/80199140