From: vsr Date: Thu, 18 Feb 2016 07:21:23 +0000 (+0300) Subject: C++98 compatibility (remove C++11 staff) X-Git-Tag: V8_0_0rc2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d46f3da0de1db00e463a8b49fbc514f55b371311;p=tools%2Fmedcoupling.git C++98 compatibility (remove C++11 staff) --- diff --git a/src/INTERP_KERNELTest/TestInterpKernelUtils.cxx b/src/INTERP_KERNELTest/TestInterpKernelUtils.cxx index 25b1c1154..211bdc34d 100644 --- a/src/INTERP_KERNELTest/TestInterpKernelUtils.cxx +++ b/src/INTERP_KERNELTest/TestInterpKernelUtils.cxx @@ -40,7 +40,7 @@ namespace INTERP_TEST resourceFile = getenv("MEDCOUPLING_ROOT_DIR"); resourceFile += "/share/resources/med/"; resourceFile += filename; - std::ifstream my_file(resourceFile); + std::ifstream my_file(resourceFile.c_str()); if (my_file.good()) return resourceFile; } @@ -51,7 +51,7 @@ namespace INTERP_TEST resourceFile += "../"; resourceFile += "resources/"; resourceFile += filename; - std::ifstream my_file(resourceFile); + std::ifstream my_file(resourceFile.c_str()); if (!my_file.good()) { std::stringstream ss; diff --git a/src/MEDPartitioner/Test/MEDPARTITIONERTest.cxx b/src/MEDPartitioner/Test/MEDPARTITIONERTest.cxx index a3a9bb910..acbc0201e 100644 --- a/src/MEDPartitioner/Test/MEDPARTITIONERTest.cxx +++ b/src/MEDPartitioner/Test/MEDPARTITIONERTest.cxx @@ -94,7 +94,7 @@ std::string MEDPARTITIONERTest::getPartitionerExe() const { execName=getenv("MEDCOUPLING_ROOT_DIR"); //.../INSTALL/MED execName+="/bin/medpartitioner"; - std::ifstream my_file(execName); + std::ifstream my_file(execName.c_str()); if (my_file.good()) return execName; }