diff --git a/src/sw/redis++/async_subscriber.h b/src/sw/redis++/async_subscriber.h index 3d8d70d1..c163a998 100644 --- a/src/sw/redis++/async_subscriber.h +++ b/src/sw/redis++/async_subscriber.h @@ -40,11 +40,13 @@ using SubscribeEventUPtr = std::unique_ptr; class AsyncSubscriber { public: + AsyncSubscriber() noexcept = default; + AsyncSubscriber(const AsyncSubscriber &) = delete; AsyncSubscriber& operator=(const AsyncSubscriber &) = delete; - AsyncSubscriber(AsyncSubscriber &&) = default; - AsyncSubscriber& operator=(AsyncSubscriber &&) = default; + AsyncSubscriber(AsyncSubscriber &&) noexcept = default; + AsyncSubscriber& operator=(AsyncSubscriber &&) noexcept = default; ~AsyncSubscriber(); diff --git a/src/sw/redis++/subscriber.h b/src/sw/redis++/subscriber.h index b932005f..6385d238 100644 --- a/src/sw/redis++/subscriber.h +++ b/src/sw/redis++/subscriber.h @@ -62,11 +62,13 @@ namespace redis { // receive the message, and ignore it, i.e. no callback will be called. class Subscriber { public: + Subscriber() noexcept = default; + Subscriber(const Subscriber &) = delete; Subscriber& operator=(const Subscriber &) = delete; - Subscriber(Subscriber &&) = default; - Subscriber& operator=(Subscriber &&) = default; + Subscriber(Subscriber &&) noexcept = default; + Subscriber& operator=(Subscriber &&) noexcept = default; ~Subscriber() = default;