From 296354f5c97835c144273441317c852d8240e427 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 30 May 2008 10:09:26 +0000 Subject: [PATCH] Fix for Bug IPAL17668 - TC71: REGR: copy object leads to fatal error and unknown exception < anInputFileStream>>aLocalPersistentID; --- > std::ostrstream anOutputStream; > anInputFileStream >> anOutputStream.rdbuf(); > aLocalPersistentID = anOutputStream.str(); --- src/VISU_I/VISU_Gen_i.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/VISU_I/VISU_Gen_i.cc b/src/VISU_I/VISU_Gen_i.cc index ec0c6d66..7a6a0016 100644 --- a/src/VISU_I/VISU_Gen_i.cc +++ b/src/VISU_I/VISU_Gen_i.cc @@ -1395,7 +1395,9 @@ namespace VISU { std::string aCopyPersist = aTmpDir + "copy_persistent"; std::ifstream anInputFileStream(aCopyPersist.c_str()); - anInputFileStream>>aLocalPersistentID; + std::ostrstream anOutputStream; + anInputFileStream >> anOutputStream.rdbuf(); + aLocalPersistentID = anOutputStream.str(); anInputFileStream.close(); } -- 2.39.2