Skip to content

Instantly share code, notes, and snippets.

Created August 30, 2015 15:29
Show Gist options
  • Save anonymous/135f9da09e1fe3e11490 to your computer and use it in GitHub Desktop.
Save anonymous/135f9da09e1fe3e11490 to your computer and use it in GitHub Desktop.
main.cc:128:46: error: implicit instantiation of undefined template 'std::function<std::packaged_task<int ()> >'
std::function<std::packaged_task<T()>> unbound = [](std::packaged_task<T()> bound_task)->void {
^
main.cc:148:17: note: in instantiation of function template specialization 'SimpleThreadPool::Submit<int>' requested here
auto res = tp.Submit<int>([]()->int {
^
functional:1866:11: note: template is declared here
class function;
^
1 error generated.
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment