Skip to content

Commit

Permalink
fix -Werror=non-virtual-dtor
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghaolong committed Mar 21, 2023
1 parent 7bd6d82 commit 220cb9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/cpp_redis/impl/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ namespace cpp_redis {
class serializer_type {
public:
inline serializer_type() {}
virtual ~serializer_type() {}

/**
* @return the underlying string
Expand All @@ -63,6 +64,8 @@ typedef std::shared_ptr<serializer_type> serializer_ptr_t;
template <typename T>
class message_impl {
public:
virtual ~message_impl() {}

virtual const std::string get_id() const = 0;

virtual const message_impl& set_id(std::string id) = 0;
Expand Down

0 comments on commit 220cb9b

Please sign in to comment.