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()));