forked from premiere/premiere-libtorrent
pass default constructed boost::function instead of NULL
Clang 6 defines NULL as nullptr which breaks implicit construction of boost::function from NULL.
This commit is contained in:
parent
aaf9304a3b
commit
236e0e7699
|
@ -224,7 +224,10 @@ namespace libtorrent { namespace dht
|
|||
void dht_tracker::get_peers(sha1_hash const& ih
|
||||
, boost::function<void(std::vector<tcp::endpoint> const&)> f)
|
||||
{
|
||||
m_dht.get_peers(ih, f, NULL, false);
|
||||
// TODO: Use `{}` instead of spelling out the whole function type when this is merged to master
|
||||
m_dht.get_peers(ih, f
|
||||
, boost::function<void(std::vector<std::pair<node_entry, std::string> > const&)>()
|
||||
, false);
|
||||
}
|
||||
|
||||
void dht_tracker::announce(sha1_hash const& ih, int listen_port, int flags
|
||||
|
|
Loading…
Reference in New Issue