From f046d4a17b1634fb48125adbeaff8d82eb2c18ae Mon Sep 17 00:00:00 2001 From: abma Date: Mon, 5 Oct 2015 02:20:13 +0200 Subject: [PATCH] fix compile warning: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit warning: ‘template class std::auto_ptr’ is deprecated --- rts/Sim/Path/Default/PathEstimator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rts/Sim/Path/Default/PathEstimator.cpp b/rts/Sim/Path/Default/PathEstimator.cpp index 059d792431f..2327b7bef42 100644 --- a/rts/Sim/Path/Default/PathEstimator.cpp +++ b/rts/Sim/Path/Default/PathEstimator.cpp @@ -763,7 +763,7 @@ bool CPathEstimator::ReadFile(const std::string& cacheFileName, const std::strin sprintf(calcMsg, "Reading Estimate PathCosts [%d]", BLOCK_SIZE); loadscreen->SetLoadMessage(calcMsg); - std::auto_ptr auto_pfile(pfile); + std::unique_ptr auto_pfile(pfile); IArchive& file(*pfile); const unsigned fid = file.FindFile("pathinfo");