From d46f3da0de1db00e463a8b49fbc514f55b371311 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 18 Feb 2016 10:21:23 +0300 Subject: [PATCH] C++98 compatibility (remove C++11 staff) --- src/INTERP_KERNELTest/TestInterpKernelUtils.cxx | 4 ++-- src/MEDPartitioner/Test/MEDPARTITIONERTest.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.39.2