You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, when I try to compile the project in Visual Studio 2013, I met an error. I found it quite similar with #2 , and I replaced that line with workers.emplace_back(std::thread(&BatchProducer::batchProducerThread,this,nThread)); but the error still exits.
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\functional(1148): error : no instance of overloaded function "std::_Pmd_wrap<_Pmd_t, _Rx, _Farg0>::operator() [with _Pmd_t=void (BatchProducer::*)(int), _Rx=void (int), _Farg0=BatchProducer]" matches the argument list
1> argument types are: (BatchProducer *, int)
1> object type is: std::_Pmd_wrap<void (BatchProducer::*)(int), void (int), BatchProducer>
1> detected during:
1> instantiation of "std::_Do_call_ret<_Forced, _Ret, std::decay<_Fun>::type, std::tuple<std::decay<_Types>::type...>, std::tuple<_Ftypes &...>, std::_Arg_idx<_Bindexes...>>::type std::_Bind<_Forced, _Ret, _Fun, _Types...>::_Do_call(std::tuple<_Ftypes &...>, std::_Arg_idx<_Bindexes...>) [with _Forced=false, _Ret=void, _Fun=std::_Pmd_wrap<void (BatchProducer::*)(int), void (int), BatchProducer>, _Types=<BatchProducer *, int>, _Ftypes=<>, _Bindexes=<0ULL, 1ULL>]"
1> (1137): here
1> instantiation of "std::_Do_call_ret<_Forced, _Ret, std::decay<_Fun>::type, std::tuple<std::decay<_Types>::type...>, std::tuple<_Ftypes &...>, std::_Make_arg_idx<_Types...>::type>::type std::_Bind<_Forced, _Ret, _Fun, _Types...>::operator()(_Ftypes &&...) [with _Forced=false, _Ret=void, _Fun=std::_Pmd_wrap<void (BatchProducer::*)(int), void (int), BatchProducer>, _Types=<BatchProducer *, int>, _Ftypes=<>]"
1> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\thr/xthread(195): here
1> instantiation of "unsigned int std::_LaunchPad<_Target>::_Run(std::_LaunchPad<_Target> *) [with _Target=std::_Bind<false, void, std::_Pmd_wrap<void (BatchProducer::*)(int), void (int), BatchProducer>, BatchProducer *, int>]"
1> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\thr/xthread(187): here
1> instantiation of "unsigned int std::_LaunchPad<_Target>::_Go() [with _Target=std::_Bind<false, void, std::_Pmd_wrap<void (BatchProducer::*)(int), void (int), BatchProducer>, BatchProducer *, int>]"
1> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\thr/xthread(183): here
1> instantiation of "std::_LaunchPad<_Target>::_LaunchPad(_Other &&) [with _Target=std::_Bind<false, void, std::_Pmd_wrap<void (BatchProducer::*)(int), void (int), BatchProducer>, BatchProducer *, int>, _Other=std::_Bind<false, void, std::_Pmd_wrap<void (BatchProducer::*)(int), void (int), BatchProducer>, BatchProducer *, int>]"
1> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\thr/xthread(205): here
1> instantiation of "void std::_Launch(_Thrd_t *, _Target &&) [with _Target=std::_Bind<false, void, std::_Pmd_wrap<void (BatchProducer::*)(int), void (int), BatchProducer>, BatchProducer *, int>]"
1> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\thread(49): here
1> instantiation of "std::thread::thread(_Fn &&, _Args &&...) [with _Fn=void (BatchProducer::*)(int), _Args=<BatchProducer *, int &>]"
1> D:/Projects/diabetic/diabetic/BatchProducer.cu(123): here
Regards.
The text was updated successfully, but these errors were encountered:
Hello, when I try to compile the project in Visual Studio 2013, I met an error. I found it quite similar with #2 , and I replaced that line with workers.emplace_back(std::thread(&BatchProducer::batchProducerThread,this,nThread)); but the error still exits.
Regards.
The text was updated successfully, but these errors were encountered: