From 07d270c87e6f9184aea4ca17eb26e466712e8db2 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 22 Jun 2013 01:10:38 +0900 Subject: Require -std=c++11 and use std::shared_ptr instead of SharedHandle --- src/AdaptiveFileAllocationIterator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/AdaptiveFileAllocationIterator.cc') diff --git a/src/AdaptiveFileAllocationIterator.cc b/src/AdaptiveFileAllocationIterator.cc index 80874317..f4a116ef 100644 --- a/src/AdaptiveFileAllocationIterator.cc +++ b/src/AdaptiveFileAllocationIterator.cc @@ -70,13 +70,13 @@ void AdaptiveFileAllocationIterator::allocateChunk() (new FallocFileAllocationIterator(stream_, offset_, totalLength_)); } catch(RecoverableException& e) { A2_LOG_DEBUG("File system does not support fallocate."); - SharedHandle salloc + std::shared_ptr salloc (new SingleFileAllocationIterator(stream_, offset_, totalLength_)); salloc->init(); allocator_ = salloc; } #else // !HAVE_FALLOCATE - SharedHandle salloc + std::shared_ptr salloc (new SingleFileAllocationIterator(stream_, offset_, totalLength_)); salloc->init(); allocator_ = salloc; -- cgit