Fix missing virtual destructor

This commit is contained in:
Sergey Kazenyuk 2015-04-20 20:17:11 +03:00
parent eb565a1ce2
commit 2ff0d757eb
2 changed files with 4 additions and 2 deletions

View file

@ -89,6 +89,8 @@ namespace nodetool
, m_hide_my_port(false)
, m_network_id(std::move(network_id))
{}
virtual ~node_server()
{}
static void init_options(boost::program_options::options_description& desc);

View file

@ -82,7 +82,6 @@ namespace nodetool
const command_line::arg_descriptor<std::vector<std::string> > arg_p2p_seed_node = {"seed-node", "Connect to a node to retrieve peer addresses, and disconnect"};
const command_line::arg_descriptor<bool> arg_p2p_hide_my_port = {"hide-my-port", "Do not announce yourself as peerlist candidate", false, true};
}
//-----------------------------------------------------------------------------------
template<class t_payload_net_handler>
void node_server<t_payload_net_handler>::init_options(boost::program_options::options_description& desc)
@ -96,7 +95,8 @@ namespace nodetool
command_line::add_arg(desc, arg_p2p_add_priority_node);
command_line::add_arg(desc, arg_p2p_add_exclusive_node);
command_line::add_arg(desc, arg_p2p_seed_node);
command_line::add_arg(desc, arg_p2p_hide_my_port); }
command_line::add_arg(desc, arg_p2p_hide_my_port);
}
//-----------------------------------------------------------------------------------
template<class t_payload_net_handler>
bool node_server<t_payload_net_handler>::init_config()