forked from premiere/premiere-libtorrent
fix darwin clang build
This commit is contained in:
parent
e19c52ec98
commit
78565e95ce
|
@ -4298,11 +4298,13 @@ namespace libtorrent
|
|||
}
|
||||
}
|
||||
|
||||
bool has_empty_url(announce_entry const& e) { return e.url.empty(); }
|
||||
|
||||
void torrent::replace_trackers(std::vector<announce_entry> const& urls)
|
||||
{
|
||||
m_trackers.clear();
|
||||
std::remove_copy_if(urls.begin(), urls.end(), back_inserter(m_trackers)
|
||||
, boost::bind(&std::string::empty, boost::bind(&announce_entry::url, _1)));
|
||||
, &has_empty_url);
|
||||
|
||||
m_last_working_tracker = -1;
|
||||
for (std::vector<announce_entry>::iterator i = m_trackers.begin()
|
||||
|
|
Loading…
Reference in New Issue