mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 08:38:23 +01:00
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:
parent
6837c17da3
commit
afd4e5e623
@ -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()));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user