forked from lthn/blockchain
virtual dtors for interfaces
This commit is contained in:
parent
d9e22a833d
commit
8cdeadfdc8
2 changed files with 2 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue