Commit 61bc9bd5 authored by Marian Triebe's avatar Marian Triebe

Replace `rm_const_and_ref` with `std::decay`

parent a8570809
......@@ -56,7 +56,7 @@ class actor_facade<Ret(Args...)> : public abstract_actor {
public:
using args_tuple =
cow_tuple<typename detail::rm_const_and_ref<Args>::type...>;
cow_tuple<typename std::decay<Args>::type...>;
using arg_mapping = std::function<optional<args_tuple>(message)>;
using result_mapping = std::function<message(Ret&)>;
......
......@@ -27,7 +27,6 @@
#include "caf/optional.hpp"
#include "cppa/cow_tuple.hpp"
#include "caf/detail/type_traits.hpp"
#include "caf/detail/limited_vector.hpp"
#include "caf/opencl/global.hpp"
......@@ -77,7 +76,7 @@ struct cl_spawn_helper<R(Ts...), void> {
using std::move;
using std::forward;
map_arg_fun f0 = [](message msg) {
return tuple_cast<typename detail::rm_const_and_ref<
return tuple_cast<typename std::decay<
typename carr_to_vec<Ts>::type>::type...>(msg);
};
map_res_fun f1 = [](result_type& result) {
......
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