We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8035aee commit 8da0340Copy full SHA for 8da0340
ctpl.h
@@ -151,7 +151,7 @@ namespace ctpl {
151
template<typename F, typename... Rest>
152
auto push(F && f, Rest&&... rest) ->std::future<decltype(f(0, rest...))> {
153
auto pck = std::make_shared<std::packaged_task<decltype(f(0, rest...))(int)>>(
154
- std::bind(std::forward<F>(f), std::placeholders::_1, std::forward<Rest...>(rest...))
+ std::bind(std::forward<F>(f), std::placeholders::_1, std::forward<Rest>(rest)...)
155
);
156
157
auto _f = new std::function<void(int id)>([pck](int id) {
0 commit comments