diff --git a/include/ircd/ctx/promise.h b/include/ircd/ctx/promise.h index 040bf6c0d..5f47d605e 100644 --- a/include/ircd/ctx/promise.h +++ b/include/ircd/ctx/promise.h @@ -68,7 +68,7 @@ struct ircd::ctx::promise_base promise_base(promise_base &&) noexcept; promise_base &operator=(const promise_base &); promise_base &operator=(promise_base &&) noexcept; - ~promise_base() noexcept; + virtual ~promise_base() noexcept; }; /// Value-oriented promise. The user creates an instance of this promise in diff --git a/include/ircd/ctx/shared_state.h b/include/ircd/ctx/shared_state.h index c53be1e32..07dafeb5e 100644 --- a/include/ircd/ctx/shared_state.h +++ b/include/ircd/ctx/shared_state.h @@ -64,7 +64,7 @@ struct ircd::ctx::shared_state_base shared_state_base(const shared_state_base &) = delete; shared_state_base &operator=(shared_state_base &&) = default; shared_state_base &operator=(const shared_state_base &) = delete; - ~shared_state_base() noexcept; + virtual ~shared_state_base() noexcept; }; /// Internal shared state between future and promise appropos a future value.