From 6093316b4753f70c66283cd6bca857a1ef8a0be7 Mon Sep 17 00:00:00 2001 From: Martyn Gigg <martyn.gigg@stfc.ac.uk> Date: Sun, 15 Jul 2012 22:02:16 +0100 Subject: [PATCH] Fix OS X build. Refs #5615 It doesn't like the fstream std::string constructor --- Code/Mantid/Framework/Kernel/test/ConfigServiceTest.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Mantid/Framework/Kernel/test/ConfigServiceTest.h b/Code/Mantid/Framework/Kernel/test/ConfigServiceTest.h index 740efe4ab1d..3a2ae998966 100644 --- a/Code/Mantid/Framework/Kernel/test/ConfigServiceTest.h +++ b/Code/Mantid/Framework/Kernel/test/ConfigServiceTest.h @@ -282,7 +282,7 @@ public: Poco::File prop_file(filename); if( prop_file.exists() ) prop_file.remove(); const std::string value("15"); - std::ofstream writer(filename); + std::ofstream writer(filename.c_str()); writer << "mantid.legs = " << value << "\n"; writer.close(); @@ -566,7 +566,7 @@ private: std::string readFile(const std::string & filename) { - std::ifstream reader(filename); + std::ifstream reader(filename.c_str()); return std::string((std::istreambuf_iterator<char>(reader)), std::istreambuf_iterator<char>()); } -- GitLab