Skip to content
Snippets Groups Projects
Commit 6093316b authored by Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony
Browse files

Fix OS X build. Refs #5615

It doesn't like the fstream std::string constructor
parent 441f390d
No related branches found
No related tags found
No related merge requests found
...@@ -282,7 +282,7 @@ public: ...@@ -282,7 +282,7 @@ public:
Poco::File prop_file(filename); Poco::File prop_file(filename);
if( prop_file.exists() ) prop_file.remove(); if( prop_file.exists() ) prop_file.remove();
const std::string value("15"); const std::string value("15");
std::ofstream writer(filename); std::ofstream writer(filename.c_str());
writer << "mantid.legs = " << value << "\n"; writer << "mantid.legs = " << value << "\n";
writer.close(); writer.close();
...@@ -566,7 +566,7 @@ private: ...@@ -566,7 +566,7 @@ private:
std::string readFile(const std::string & filename) 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)), return std::string((std::istreambuf_iterator<char>(reader)),
std::istreambuf_iterator<char>()); std::istreambuf_iterator<char>());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment