Commit dededb12 authored by neverlord's avatar neverlord

added 'named' conversion function

parent 35762ddc
...@@ -799,11 +799,16 @@ class match_expr ...@@ -799,11 +799,16 @@ class match_expr
} }
}; };
operator 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)}};
} }
inline operator partial_function() const
{
return as_partial_function();
}
private: private:
// structure: tdata< tdata<type_list<...>, ...>, // structure: tdata< tdata<type_list<...>, ...>,
......
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