mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-17 07:32:32 +00:00
* Changed the ctor for rt_triple to a non-template version.
* Made torrent::Rate::rate_type uint64_t and added sanity checks due to reports of bad download/upload values being reported to some trackers. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1103 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+1
-3
@@ -87,10 +87,8 @@ struct rt_triple : private std::pair<T1, T2> {
|
||||
rt_triple(const T1& a, const T2& b, const T3& c) :
|
||||
base_type(a, b), third(c) {}
|
||||
|
||||
template <typename U1, typename U2>
|
||||
rt_triple(const std::pair<U1, U2>& b) : base_type(b), third() {}
|
||||
rt_triple(const base_type& b) : base_type(b), third() {}
|
||||
|
||||
template <typename U1, typename U2, typename U3>
|
||||
rt_triple(const rt_triple& src) :
|
||||
base_type(src.first, src.second), third(src.third) {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user