Commit a6fad679 authored by ufownl's avatar ufownl

Fix `typed_response_promise`

parent 7eacc32a
......@@ -60,9 +60,9 @@ struct ctm_cmp<typed_mpi<In, Out, empty_type_list>,
typed_mpi<In, type_list<typed_continue_helper<Out>>, empty_type_list>>
: std::true_type { };
template <class In, class Out>
struct ctm_cmp<typed_mpi<In, Out, empty_type_list>,
typed_mpi<In, type_list<typed_response_promise<Out>>, empty_type_list>>
template <class In, class... Ts>
struct ctm_cmp<typed_mpi<In, type_list<Ts...>, empty_type_list>,
typed_mpi<In, type_list<typed_response_promise<Ts...>>, empty_type_list>>
: std::true_type { };
template <class In, class L, class R>
......
......@@ -25,7 +25,7 @@
namespace caf {
template <class T>
template <class... Ts>
class typed_response_promise {
public:
typed_response_promise(response_promise promise) : promise_(promise) {
......@@ -37,8 +37,8 @@ public:
return static_cast<bool>(promise_);
}
void deliver(T what) const {
promise_.deliver(make_message(std::move(what)));
void deliver(Ts... what) const {
promise_.deliver(make_message(std::move(what)...));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment