From afd4e5e623a89de415a53c5bafb989d464ed633b Mon Sep 17 00:00:00 2001 From: Scott R Charlton Date: Tue, 7 Feb 2017 21:42:50 +0000 Subject: [PATCH] replaced auto_ptr with unique_ptr for IPhreeqc git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@12343 1feff8c3-07ed-0310-ac33-dd36852eb9cd --- IPhreeqc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/IPhreeqc.cpp b/IPhreeqc.cpp index 442354f6..4c1de513 100644 --- a/IPhreeqc.cpp +++ b/IPhreeqc.cpp @@ -1192,7 +1192,11 @@ void IPhreeqc::do_run(const char* sz_routine, std::istream* pis, PFN_PRERUN_CALL /* * set read callback */ +#if (__GNUC__ && (__cplusplus >= 201103L)) || (_MSC_VER >= 1600) + std::unique_ptr auto_iss=NULL; +#else std::auto_ptr auto_iss(0); +#endif if (!pis) { auto_iss.reset(new std::istringstream(this->GetAccumulatedLines()));