fix comparison operator of web_seed_entry

This commit is contained in:
Arvid Norberg 2009-10-26 20:12:57 +00:00
parent c777227c84
commit ecb922e013
1 changed files with 5 additions and 1 deletions

View File

@ -106,7 +106,11 @@ namespace libtorrent
{ return url == e.url && type == e.type; }
bool operator<(web_seed_entry const& e) const
{ return url < e.url ? true : type < e.type; }
{
if (url < e.url) return true;
if (url > e.url) return false;
return type < e.type;
}
};
// a torrent is a class that holds information