diff --git a/include/continuable/detail/expected.hpp b/include/continuable/detail/expected.hpp index 0e61495..1285e2d 100644 --- a/include/continuable/detail/expected.hpp +++ b/include/continuable/detail/expected.hpp @@ -100,7 +100,7 @@ struct expected_copy_base : expected_move_base { { Base& me = *static_cast(this); Base const& other = *static_cast(&right); - assert(!other->is_empty()); + assert(!other.is_empty()); #ifndef _NDEBUG me.set(slot_t::empty);