Skip to content

Commit

Permalink
library with no dependency on Boost
Browse files Browse the repository at this point in the history
  • Loading branch information
vit-vit committed Sep 17, 2014
1 parent 8da0340 commit efec987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctpl_stl.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ namespace ctpl {
template<typename F, typename... Rest>
auto push(F && f, Rest&&... rest) ->std::future<decltype(f(0, rest...))> {
auto pck = std::make_shared<std::packaged_task<decltype(f(0, rest...))(int)>>(
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)...)
);

this->q.push([pck](int id) {
Expand Down

0 comments on commit efec987

Please sign in to comment.