Require -std=c++11 and use std::shared_ptr instead of SharedHandle

This commit is contained in:
Tatsuhiro Tsujikawa 2013-06-22 01:10:38 +09:00
parent 126a4bde61
commit 07d270c87e
709 changed files with 6305 additions and 6878 deletions

View file

@ -33,12 +33,12 @@ CPPUNIT_TEST_SUITE_REGISTRATION(DHTMessageTrackerEntryTest);
void DHTMessageTrackerEntryTest::testMatch()
{
SharedHandle<DHTNode> localNode(new DHTNode());
std::shared_ptr<DHTNode> localNode(new DHTNode());
try {
SharedHandle<DHTNode> node1(new DHTNode());
SharedHandle<MockDHTMessage> msg1(new MockDHTMessage(localNode, node1));
SharedHandle<DHTNode> node2(new DHTNode());
SharedHandle<MockDHTMessage> msg2(new MockDHTMessage(localNode, node2));
std::shared_ptr<DHTNode> node1(new DHTNode());
std::shared_ptr<MockDHTMessage> msg1(new MockDHTMessage(localNode, node1));
std::shared_ptr<DHTNode> node2(new DHTNode());
std::shared_ptr<MockDHTMessage> msg2(new MockDHTMessage(localNode, node2));
DHTMessageTrackerEntry entry(msg1, 30);