Commit ff797ca7 authored by Dominik Charousset's avatar Dominik Charousset

Add missing default constructor

parent d944d2a1
......@@ -29,15 +29,19 @@ public:
/// Stores the template parameter pack.
using signatures = detail::type_list<Sigs...>;
typed_actor_pointer() : view_(nullptr) {
// nop
}
template <class Supertype>
typed_actor_pointer(Supertype* selfptr) : view_(selfptr) {
explicit typed_actor_pointer(Supertype* selfptr) : view_(selfptr) {
using namespace caf::detail;
static_assert(
tl_subset_of<type_list<Sigs...>, typename Supertype::signatures>::value,
"cannot create a pointer view to an unrelated actor type");
}
typed_actor_pointer(std::nullptr_t) : view_(nullptr) {
explicit typed_actor_pointer(std::nullptr_t) : view_(nullptr) {
// nop
}
......
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