diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
| commit | 07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch) | |
| tree | 2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /src/DHTPeerAnnounceEntry.cc | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/DHTPeerAnnounceEntry.cc')
| -rw-r--r-- | src/DHTPeerAnnounceEntry.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DHTPeerAnnounceEntry.cc b/src/DHTPeerAnnounceEntry.cc index 3fe0a470..bec96191 100644 --- a/src/DHTPeerAnnounceEntry.cc +++ b/src/DHTPeerAnnounceEntry.cc @@ -96,11 +96,11 @@ bool DHTPeerAnnounceEntry::empty() const } void DHTPeerAnnounceEntry::getPeers -(std::vector<SharedHandle<Peer> >& peers) const +(std::vector<std::shared_ptr<Peer> >& peers) const { for(std::vector<PeerAddrEntry>::const_iterator i = peerAddrEntries_.begin(), eoi = peerAddrEntries_.end(); i != eoi; ++i) { - SharedHandle<Peer> peer(new Peer((*i).getIPAddress(), (*i).getPort())); + std::shared_ptr<Peer> peer(new Peer((*i).getIPAddress(), (*i).getPort())); peers.push_back(peer); } } |
