From: eap Date: Fri, 6 Aug 2021 15:39:08 +0000 (+0300) Subject: Use SMESHUtils::BoostTxtArchive instead of boost::archive::text_iarchive X-Git-Tag: V9_8_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=537b41016d8a71dbee93ef1992a561681c7b07d1;p=plugins%2Fblsurfplugin.git Use SMESHUtils::BoostTxtArchive instead of boost::archive::text_iarchive --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx index f583e98..3ff30d9 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx @@ -29,6 +29,7 @@ #include #include +#include #include #include #include @@ -47,7 +48,6 @@ #define MESHGEMS_VERSION_HEX (MESHGEMS_VERSION_MAJOR << 16 | MESHGEMS_VERSION_MINOR << 8 | MESHGEMS_VERSION_PATCH) #include -#include #include #include #include @@ -3395,10 +3395,8 @@ std::istream & BLSURFPlugin_Hypothesis::LoadFrom(std::istream & load) std::string buffer; if ( SMESHDS_Hypothesis::LoadStringFromStream( load, buffer )) { - std::istringstream istream( buffer.data() ); - boost::archive::text_iarchive archive( istream ); SMESH_TRY; - archive >> _hyperPatchEntriesList; + SMESHUtils::BoostTxtArchive( buffer ) >> _hyperPatchEntriesList; SMESH_CATCH( SMESH::printErrorInDebugMode ); } @@ -3406,10 +3404,8 @@ std::istream & BLSURFPlugin_Hypothesis::LoadFrom(std::istream & load) buffer.clear(); if ( SMESHDS_Hypothesis::LoadStringFromStream( load, buffer )) { - std::istringstream istream( buffer.data() ); - boost::archive::text_iarchive archive( istream ); SMESH_TRY; - archive >> _enforcedMeshes; + SMESHUtils::BoostTxtArchive( buffer ) >> _enforcedMeshes; SMESH_CATCH( SMESH::printErrorInDebugMode ); }