Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default constructor for Subscriber and AsyncSubscriber. #410

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add default constructor for Subscriber
RnMss committed Oct 21, 2022
commit f9ebb5537b4622a96c02dc6fad81c2fe511daa6e
2 changes: 2 additions & 0 deletions src/sw/redis++/async_subscriber.h
Original file line number Diff line number Diff line change
@@ -40,6 +40,8 @@ using SubscribeEventUPtr = std::unique_ptr<SubscribeEvent>;

class AsyncSubscriber {
public:
AsyncSubscriber() = default;

AsyncSubscriber(const AsyncSubscriber &) = delete;
AsyncSubscriber& operator=(const AsyncSubscriber &) = delete;

2 changes: 2 additions & 0 deletions src/sw/redis++/subscriber.h
Original file line number Diff line number Diff line change
@@ -62,6 +62,8 @@ namespace redis {
// receive the message, and ignore it, i.e. no callback will be called.
class Subscriber {
public:
Subscriber() = default;

Subscriber(const Subscriber &) = delete;
Subscriber& operator=(const Subscriber &) = delete;