Guest User

compiler error for int

a guest
Nov 24th, 2015
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 4.00 KB | None | 0 0
  1. 1>e:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread(238): error C2893: Failed to specialize function template 'unknown-type std::invoke(_Callable &&,_Types &&...)'
  2. 1>  e:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread(238): note: With the following template arguments:
  3. 1>  e:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread(238): note: '_Callable=main::<lambda_bd35448d142d092a9b357021eb98a1c0>'
  4. 1>  e:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread(238): note: '_Types={int}'
  5. 1>  e:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread(247): note: see reference to function template instantiation 'void std::_LaunchPad<_Target>::_Execute<0x00,0x01>(std::tuple<main::<lambda_bd35448d142d092a9b357021eb98a1c0>,int> &,std::integer_sequence<_Ty,0x00,0x01>)' being compiled
  6. 1>          with
  7. 1>          [
  8. 1>              _Target=std::unique_ptr<std::tuple<main::<lambda_bd35448d142d092a9b357021eb98a1c0>,int>,std::default_delete<std::tuple<main::<lambda_bd35448d142d092a9b357021eb98a1c0>,int>>>,
  9. 1>              _Ty=size_t
  10. 1>          ]
  11. 1>  e:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread(247): note: see reference to function template instantiation 'void std::_LaunchPad<_Target>::_Execute<0x00,0x01>(std::tuple<main::<lambda_bd35448d142d092a9b357021eb98a1c0>,int> &,std::integer_sequence<_Ty,0x00,0x01>)' being compiled
  12. 1>          with
  13. 1>          [
  14. 1>              _Target=std::unique_ptr<std::tuple<main::<lambda_bd35448d142d092a9b357021eb98a1c0>,int>,std::default_delete<std::tuple<main::<lambda_bd35448d142d092a9b357021eb98a1c0>,int>>>,
  15. 1>              _Ty=size_t
  16. 1>          ]
  17. 1>  e:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread(242): note: while compiling class template member function 'void std::_LaunchPad<_Target>::_Run(std::_LaunchPad<_Target> *) noexcept'
  18. 1>          with
  19. 1>          [
  20. 1>              _Target=std::unique_ptr<std::tuple<main::<lambda_bd35448d142d092a9b357021eb98a1c0>,int>,std::default_delete<std::tuple<main::<lambda_bd35448d142d092a9b357021eb98a1c0>,int>>>
  21. 1>          ]
  22. 1>  e:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread(230): note: see reference to function template instantiation 'void std::_LaunchPad<_Target>::_Run(std::_LaunchPad<_Target> *) noexcept' being compiled
  23. 1>          with
  24. 1>          [
  25. 1>              _Target=std::unique_ptr<std::tuple<main::<lambda_bd35448d142d092a9b357021eb98a1c0>,int>,std::default_delete<std::tuple<main::<lambda_bd35448d142d092a9b357021eb98a1c0>,int>>>
  26. 1>          ]
  27. 1>  e:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread(256): note: see reference to class template instantiation 'std::_LaunchPad<_Target>' being compiled
  28. 1>          with
  29. 1>          [
  30. 1>              _Target=std::unique_ptr<std::tuple<main::<lambda_bd35448d142d092a9b357021eb98a1c0>,int>,std::default_delete<std::tuple<main::<lambda_bd35448d142d092a9b357021eb98a1c0>,int>>>
  31. 1>          ]
  32. 1>  e:\program files (x86)\microsoft visual studio 14.0\vc\include\thread(52): note: see reference to function template instantiation 'void std::_Launch<std::unique_ptr<std::tuple<main::<lambda_bd35448d142d092a9b357021eb98a1c0>,int>,std::default_delete<std::tuple<main::<lambda_bd35448d142d092a9b357021eb98a1c0>,int>>>>(_Thrd_t *,_Target &&)' being compiled
  33. 1>          with
  34. 1>          [
  35. 1>              _Target=std::unique_ptr<std::tuple<main::<lambda_bd35448d142d092a9b357021eb98a1c0>,int>,std::default_delete<std::tuple<main::<lambda_bd35448d142d092a9b357021eb98a1c0>,int>>>
  36. 1>          ]
  37. 1>  c:\users\ot_chen\documents\visual studio 2015\projects\consoleapplication1\consoleapplication1\consoleapplication1.cpp(24): note: see reference to function template instantiation 'std::thread::thread<main::<lambda_bd35448d142d092a9b357021eb98a1c0>&,int&,void>(_Fn,int &)' being compiled
  38. 1>          with
  39. 1>          [
  40. 1>              _Fn=main::<lambda_bd35448d142d092a9b357021eb98a1c0> &
  41. 1>          ]
Advertisement
Add Comment
Please, Sign In to add comment