Commit 655a7022 authored by Dominik Charousset's avatar Dominik Charousset

fixed argument type of match_expr::can_invoke

parent 2df44f71
...@@ -643,7 +643,7 @@ class match_expr { ...@@ -643,7 +643,7 @@ class match_expr {
return _invoke(tmp); return _invoke(tmp);
} }
bool can_invoke(any_tuple const tup) { bool can_invoke(const any_tuple& tup) {
auto& type_token = *(tup.type_token()); auto& type_token = *(tup.type_token());
eval_order token; eval_order token;
std::uint64_t tmp = 0; std::uint64_t tmp = 0;
...@@ -673,7 +673,6 @@ class match_expr { ...@@ -673,7 +673,6 @@ class match_expr {
tuple_type; tuple_type;
// applies implicit conversions etc // applies implicit conversions etc
tuple_type tup{std::forward<Args>(args)...}; tuple_type tup{std::forward<Args>(args)...};
auto& type_token = typeid(typename tuple_type::types); auto& type_token = typeid(typename tuple_type::types);
auto enabled_begin = get_cache_entry(&type_token, tup); auto enabled_begin = get_cache_entry(&type_token, tup);
...@@ -730,8 +729,6 @@ class match_expr { ...@@ -730,8 +729,6 @@ class match_expr {
} }
}; };
inline partial_function as_partial_function() const { inline partial_function as_partial_function() const {
return {partial_function::impl_ptr{new pfun_impl(*this)}}; return {partial_function::impl_ptr{new pfun_impl(*this)}};
} }
......
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