Fixed for pre-C++11 ifstream which does not accept std::string.
diff --git a/benchmarks/generate_datasets.cc b/benchmarks/generate_datasets.cc index 8e9b441..dab635e 100644 --- a/benchmarks/generate_datasets.cc +++ b/benchmarks/generate_datasets.cc
@@ -86,7 +86,7 @@ std::ofstream writer; std::string fname = file_prefix + name + file_suffix; - writer.open(fname); + writer.open(fname.c_str()); writer << serialized; writer.close(); @@ -101,7 +101,7 @@ } std::string ReadFile(const std::string& name) { - std::ifstream file(name); + std::ifstream file(name.c_str()); GOOGLE_CHECK(file.is_open()) << "Couldn't find file '" << name << "', please make sure you are running " "this command from the benchmarks/ "