From 76fd429f89261662a6698125f72b56a227dc6906 Mon Sep 17 00:00:00 2001 From: rakshasa Date: Mon, 16 Nov 2009 14:02:24 +0000 Subject: [PATCH] * 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 --- src/rpc/command.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rpc/command.h b/src/rpc/command.h index 7d50dd81..07ade76a 100644 --- a/src/rpc/command.h +++ b/src/rpc/command.h @@ -87,10 +87,8 @@ struct rt_triple : private std::pair { rt_triple(const T1& a, const T2& b, const T3& c) : base_type(a, b), third(c) {} - template - rt_triple(const std::pair& b) : base_type(b), third() {} + rt_triple(const base_type& b) : base_type(b), third() {} - template rt_triple(const rt_triple& src) : base_type(src.first, src.second), third(src.third) {} };