summaryrefslogtreecommitdiffstats
path: root/indexlib/mempool.tcc
diff options
context:
space:
mode:
Diffstat (limited to 'indexlib/mempool.tcc')
-rw-r--r--indexlib/mempool.tcc4
1 files changed, 2 insertions, 2 deletions
diff --git a/indexlib/mempool.tcc b/indexlib/mempool.tcc
index a130bffee..750209a22 100644
--- a/indexlib/mempool.tcc
+++ b/indexlib/mempool.tcc
@@ -33,8 +33,8 @@
*/
template <typename Traits>
-mempool<Traits>::mempool( std::auto_ptr<memory_manager> source ):
- manager_( source ),
+mempool<Traits>::mempool( std::unique_ptr<memory_manager> &&source ):
+ manager_( std::move(source) ),
max_order_( 0 )
{
if ( !manager_->size() ) init_memory();