Commit d3b7693d authored by Dominik Charousset's avatar Dominik Charousset

added const qualifier to response_handle::then

parent 0076feb1
...@@ -85,13 +85,13 @@ class response_handle<Self, any_tuple, nonblocking_response_handle_tag> { ...@@ -85,13 +85,13 @@ class response_handle<Self, any_tuple, nonblocking_response_handle_tag> {
response_handle& operator=(const response_handle&) = default; response_handle& operator=(const response_handle&) = default;
inline continue_helper then(behavior bhvr) { inline continue_helper then(behavior bhvr) const {
m_self->bhvr_stack().push_back(std::move(bhvr), m_mid); m_self->bhvr_stack().push_back(std::move(bhvr), m_mid);
return {m_mid, m_self}; return {m_mid, m_self};
} }
template<typename... Cs, typename... Ts> template<typename... Cs, typename... Ts>
continue_helper then(const match_expr<Cs...>& arg, const Ts&... args) { continue_helper then(const match_expr<Cs...>& arg, const Ts&... args) const {
return then(behavior{arg, args...}); return then(behavior{arg, args...});
} }
...@@ -100,7 +100,7 @@ class response_handle<Self, any_tuple, nonblocking_response_handle_tag> { ...@@ -100,7 +100,7 @@ class response_handle<Self, any_tuple, nonblocking_response_handle_tag> {
util::all_callable<Fs...>::value, util::all_callable<Fs...>::value,
continue_helper continue_helper
>::type >::type
then(Fs... fs) { then(Fs... fs) const {
return then(detail::fs2bhvr(m_self, fs...)); return then(detail::fs2bhvr(m_self, fs...));
} }
......
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