Removed specializations of std::swap(PeerEntry&, PeerEntry&).

Declaring std::swap(PeerEntry&, PeerEntry&) in class declaration
breaks under Mac OS X 10.5. They are also not used. So we simply
removed them.
pull/1/head
Tatsuhiro Tsujikawa 2010-12-05 23:19:37 +09:00
parent 55e49b65d3
commit da8e0203b8
4 changed files with 0 additions and 36 deletions

View File

@ -239,13 +239,3 @@ const Timer& BtLeecherStateChoke::getLastRound() const
}
} // namespace aria2
namespace std {
template<>
void swap<aria2::BtLeecherStateChoke::PeerEntry>
(aria2::BtLeecherStateChoke::PeerEntry& a,
aria2::BtLeecherStateChoke::PeerEntry& b)
{
a.swap(b);
}
} // namespace std;

View File

@ -118,7 +118,6 @@ public:
const Timer& getLastRound() const;
friend void swap(PeerEntry& a, PeerEntry& b);
friend void std::swap<PeerEntry>(PeerEntry& a, PeerEntry& b);
};
void swap
@ -127,11 +126,4 @@ void swap
} // namespace aria2
namespace std {
template<>
void swap<aria2::BtLeecherStateChoke::PeerEntry>
(aria2::BtLeecherStateChoke::PeerEntry& a,
aria2::BtLeecherStateChoke::PeerEntry& b);
} // namespace std
#endif // D_BT_LEECHER_STATE_CHOKE_H

View File

@ -194,13 +194,3 @@ void swap
}
} // namespace aria2
namespace std {
template<>
void swap<aria2::BtSeederStateChoke::PeerEntry>
(aria2::BtSeederStateChoke::PeerEntry& a,
aria2::BtSeederStateChoke::PeerEntry& b)
{
a.swap(b);
}
} // namespace std

View File

@ -103,7 +103,6 @@ public:
const Timer& getLastRound() const { return lastRound_; }
friend void swap(PeerEntry& a, PeerEntry& b);
friend void std::swap<PeerEntry>(PeerEntry& a, PeerEntry& b);
};
void swap
@ -112,11 +111,4 @@ void swap
} // namespace aria2
namespace std {
template<>
void swap<aria2::BtSeederStateChoke::PeerEntry>
(aria2::BtSeederStateChoke::PeerEntry& a,
aria2::BtSeederStateChoke::PeerEntry& b);
} // namespace std
#endif // D_BT_SEEDER_STATE_CHOKE_H