Skip to content

Commit 8da0340

Browse files
committed
library with dependency on Boost
1 parent 8035aee commit 8da0340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ctpl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ namespace ctpl {
151151
template<typename F, typename... Rest>
152152
auto push(F && f, Rest&&... rest) ->std::future<decltype(f(0, rest...))> {
153153
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...))
154+
std::bind(std::forward<F>(f), std::placeholders::_1, std::forward<Rest>(rest)...)
155155
);
156156

157157
auto _f = new std::function<void(int id)>([pck](int id) {

0 commit comments

Comments
 (0)