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
This commit is contained in:
Scott R Charlton 2017-02-07 21:42:50 +00:00
parent 6837c17da3
commit afd4e5e623

View File

@ -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<std::istringstream> auto_iss=NULL;
#else
std::auto_ptr<std::istringstream> auto_iss(0);
#endif
if (!pis)
{
auto_iss.reset(new std::istringstream(this->GetAccumulatedLines()));