DEVC++
thread:no type named 'type' in 'class std::result_of<void (*())(HWND__*)>'
原因:含参函数未加参数,如:
#include <iostream>
#include <Thread>
using namespace std;
void fun1(int i){
cout << i << endl;
}
int main(){
thread t1(fun1);
t1.detach();
return 0;
}
这个报错老是报到其他文件,让人找不到真正的错误在哪