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
push uses std::bind which will pass stored arguments to ptr as lvalues, but the second and third parameters of ptr are rvalue references, so it won't compile. You can change your ptr to
Because my functions do not conform to the required format, I create a helper function to solve this problem, namely
.
That is, if I have a function, e.g.
, I should be able to push it into the thread pool by calling
.
But this simply does not work, for some parts of the code lack the process of coping these arguments and applying "std::forward" to them.
The text was updated successfully, but these errors were encountered: