mirror of https://github.com/aria2/aria2
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
parent
55e49b65d3
commit
da8e0203b8
|
@ -239,13 +239,3 @@ const Timer& BtLeecherStateChoke::getLastRound() const
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace aria2
|
} // namespace aria2
|
||||||
|
|
||||||
namespace std {
|
|
||||||
template<>
|
|
||||||
void swap<aria2::BtLeecherStateChoke::PeerEntry>
|
|
||||||
(aria2::BtLeecherStateChoke::PeerEntry& a,
|
|
||||||
aria2::BtLeecherStateChoke::PeerEntry& b)
|
|
||||||
{
|
|
||||||
a.swap(b);
|
|
||||||
}
|
|
||||||
} // namespace std;
|
|
||||||
|
|
|
@ -118,7 +118,6 @@ public:
|
||||||
const Timer& getLastRound() const;
|
const Timer& getLastRound() const;
|
||||||
|
|
||||||
friend void swap(PeerEntry& a, PeerEntry& b);
|
friend void swap(PeerEntry& a, PeerEntry& b);
|
||||||
friend void std::swap<PeerEntry>(PeerEntry& a, PeerEntry& b);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void swap
|
void swap
|
||||||
|
@ -127,11 +126,4 @@ void swap
|
||||||
|
|
||||||
} // namespace aria2
|
} // 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
|
#endif // D_BT_LEECHER_STATE_CHOKE_H
|
||||||
|
|
|
@ -194,13 +194,3 @@ void swap
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace aria2
|
} // namespace aria2
|
||||||
|
|
||||||
namespace std {
|
|
||||||
template<>
|
|
||||||
void swap<aria2::BtSeederStateChoke::PeerEntry>
|
|
||||||
(aria2::BtSeederStateChoke::PeerEntry& a,
|
|
||||||
aria2::BtSeederStateChoke::PeerEntry& b)
|
|
||||||
{
|
|
||||||
a.swap(b);
|
|
||||||
}
|
|
||||||
} // namespace std
|
|
||||||
|
|
|
@ -103,7 +103,6 @@ public:
|
||||||
const Timer& getLastRound() const { return lastRound_; }
|
const Timer& getLastRound() const { return lastRound_; }
|
||||||
|
|
||||||
friend void swap(PeerEntry& a, PeerEntry& b);
|
friend void swap(PeerEntry& a, PeerEntry& b);
|
||||||
friend void std::swap<PeerEntry>(PeerEntry& a, PeerEntry& b);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void swap
|
void swap
|
||||||
|
@ -112,11 +111,4 @@ void swap
|
||||||
|
|
||||||
} // namespace aria2
|
} // 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
|
#endif // D_BT_SEEDER_STATE_CHOKE_H
|
||||||
|
|
Loading…
Reference in New Issue