From 537b41016d8a71dbee93ef1992a561681c7b07d1 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 6 Aug 2021 18:39:08 +0300 Subject: [PATCH] Use SMESHUtils::BoostTxtArchive instead of boost::archive::text_iarchive --- src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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 ); } -- 2.39.2