Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling error [BatchProducer.cu] #7

Open
wangsssky opened this issue Aug 18, 2016 · 0 comments
Open

compiling error [BatchProducer.cu] #7

wangsssky opened this issue Aug 18, 2016 · 0 comments

Comments

@wangsssky
Copy link

wangsssky commented Aug 18, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant