From d2f343cc239e1fa25c9581cf35bada96692c41db Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 23 Jan 2024 10:13:00 +0900 Subject: Replace auto_ptr Signed-off-by: Michele Calgaro --- indexlib/compressed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indexlib/compressed.cpp') diff --git a/indexlib/compressed.cpp b/indexlib/compressed.cpp index a60c3f06..9c73c304 100644 --- a/indexlib/compressed.cpp +++ b/indexlib/compressed.cpp @@ -53,7 +53,7 @@ memory_manager* get_comp_p() { compressed_file::compressed_file( std::string base ): auxdata_( path_concat( base, "table" ) ), - data_( std::auto_ptr( new mmap_manager( path_concat( base, "data" ) ) ) ) + data_( std::unique_ptr( new mmap_manager( path_concat( base, "data" ) ) ) ) { if ( auxdata_.empty() ) auxdata_.push_back( 0 ); } -- cgit v1.2.3