代码:
#include<bits/stdc++.h> using namespace std; void f(){ //... } int main(){ thread t1(f()); }
f()是返回void类型的函数
为什么会报这个错: [Error] expected primary-expression before 'void'