From 3ce4b4937516bed16ac304bc8ee96a1f323491cd Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 16 Oct 2015 11:46:27 +0400 Subject: [PATCH] C++11 compatibility --- src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx index 2bf1f0e75..cd2d8e6f8 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx @@ -1555,9 +1555,10 @@ void ReadNoteBookVariables(SALOMEDSImpl_Study* theStudy, HDFgroup* theGroup) SALOMEDSImpl_GenericVariable* aVariable = new SALOMEDSImpl_ScalarVariable(aVarType,std::string(aVarName)); aVariable->Load(std::string(currentVarValue)); - aVarsMap.insert(std::make_pair(order,aVariable)); + std::pair p = std::make_pair(order,aVariable); + aVarsMap.insert(p); delete [] currentVarValue; - } + } } std::map::const_iterator it= aVarsMap.begin(); -- 2.39.2