Commit d944d2a1 authored by Dominik Charousset's avatar Dominik Charousset

Add covenience alias for typed actor views

parent 532a5087
...@@ -38,8 +38,7 @@ public: ...@@ -38,8 +38,7 @@ public:
using broker_base = typename handle_type::broker_base; using broker_base = typename handle_type::broker_base;
using self_pointer = using self_pointer = typename handle_type::pointer_view;
typename detail::tl_apply<signatures, typed_actor_pointer>::type;
composed_behavior() : self(nullptr) { composed_behavior() : self(nullptr) {
// nop // nop
......
...@@ -71,6 +71,7 @@ template <class...> class delegated; ...@@ -71,6 +71,7 @@ template <class...> class delegated;
template <class...> class result; template <class...> class result;
template <class...> class typed_actor; template <class...> class typed_actor;
template <class...> class typed_actor_pointer; template <class...> class typed_actor_pointer;
template <class...> class typed_actor_view;
template <class...> class typed_event_based_actor; template <class...> class typed_event_based_actor;
template <class...> class typed_response_promise; template <class...> class typed_response_promise;
template <class...> class variant; template <class...> class variant;
......
...@@ -93,6 +93,10 @@ public: ...@@ -93,6 +93,10 @@ public:
/// Identifies pointers to instances of this kind of actor. /// Identifies pointers to instances of this kind of actor.
using pointer = typed_event_based_actor<Sigs...>*; using pointer = typed_event_based_actor<Sigs...>*;
/// Allows a view to an actor implementing this messaging interface without
/// knowledge of the actual type..
using pointer_view = typed_actor_pointer<Sigs...>;
/// Identifies the base class for this kind of actor. /// Identifies the base class for this kind of actor.
using base = typed_event_based_actor<Sigs...>; using base = typed_event_based_actor<Sigs...>;
......
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