1
0
Fork 0
forked from lthn/blockchain

virtual dtors for interfaces

This commit is contained in:
sowle 2020-03-30 11:41:12 +03:00
parent d9e22a833d
commit 8cdeadfdc8
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
2 changed files with 2 additions and 0 deletions

View file

@ -224,6 +224,7 @@ namespace net_utils
struct abstract_callback_base
{
virtual bool do_call(const std::string& piece_of_transfer) = 0;
virtual ~abstract_callback_base() {}
};
template <typename callback_t>

View file

@ -907,6 +907,7 @@ using namespace std;
struct idle_handler_base
{
virtual bool do_call(const std::string& piece_of_data, uint64_t total_bytes, uint64_t received_bytes) = 0;
virtual idle_handler_base() {}
};
template <typename callback_t>