added a TODO, regarding the code-dupe going on in priority_task() methods
This commit is contained in:
parent
c8e6693754
commit
57ce1f25d3
1
main.cpp
1
main.cpp
@ -75,6 +75,7 @@ public:
|
||||
template <typename R> void priority_task(std::packaged_task<R()>&& ) = delete;
|
||||
|
||||
/* adding tasks to the queue */
|
||||
// TODO: use template-based policies to deal with priority tasks to avoid code-dupe.
|
||||
template <typename F, typename... Args>
|
||||
auto add_task(F&& f, Args&&... args) -> std::future<decltype(f(args...))>;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user