added a TODO, regarding the code-dupe going on in priority_task() methods

This commit is contained in:
Kjistóf 2016-11-22 17:35:57 +01:00
parent c8e6693754
commit 57ce1f25d3

View File

@ -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...))>;