Skip to content

Commit

Permalink
fix compile warning:
Browse files Browse the repository at this point in the history
warning: ‘template<class> class std::auto_ptr’ is deprecated
  • Loading branch information
abma committed Oct 5, 2015
1 parent 81535d8 commit f046d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/Sim/Path/Default/PathEstimator.cpp
Expand Up @@ -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<IArchive> auto_pfile(pfile);
std::unique_ptr<IArchive> auto_pfile(pfile);
IArchive& file(*pfile);

const unsigned fid = file.FindFile("pathinfo");
Expand Down

0 comments on commit f046d4a

Please sign in to comment.