Pass multiple arguments into std::thread

前端 未结 3 909
礼貌的吻别
礼貌的吻别 2020-12-05 09:10

I\'m asking the library in C++11 standard.

Say you have a function like:

void func1(int a, int b, ObjA c, ObjB d){
             


        
3条回答
  •  难免孤独
    2020-12-05 09:45

    If you're getting this, you may have forgotten to put #include at the beginning of your file. OP's signature seems like it should work.

提交回复
热议问题