void on_future_ready_(Index i, threads::thread_id_type const& id, boost::mpl::true_) { if (lazy_values_[i].has_value()) { if (success_counter_) ++*success_counter_; // invoke callback function f_(i); } // keep track of ready futures on_future_ready_(id); }
void on_future_ready(std::size_t i, threads::thread_id_type const& id) { on_future_ready_(i, id, boost::is_same<void, T>()); }
void on_future_ready(std::size_t i, threads::thread_id_type const& id) { on_future_ready_(i, id, boost::is_void<typename traits::future_traits<Future>::type>()); }