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
allows the above to compile. Similarly change the typedef inside the definition.
If I felt I had more expertise in template metaprogramming, I would have submitted a patch. But I may have omitted std::forward in places where it matters.
The text was updated successfully, but these errors were encountered:
Code such as this will fail in template deduction:
auto member_task = TP.enqueue(&MyClass::member_func, this);
std::result_of uses std::declval to get the proper result.
Changing the declaration of ThreadPool::enqueue to:
allows the above to compile. Similarly change the typedef inside the definition.
If I felt I had more expertise in template metaprogramming, I would have submitted a patch. But I may have omitted std::forward in places where it matters.
The text was updated successfully, but these errors were encountered: