fix darwin clang build

This commit is contained in:
Arvid Norberg 2014-05-02 07:15:47 +00:00
parent e19c52ec98
commit 78565e95ce
1 changed files with 3 additions and 1 deletions

View File

@ -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()