Commit bd78d658f3cbded4e7d534ab4faa46b6330f55dc

Authored by David Mayerich
1 parent 889c89dd

Pranathi's image.h fix

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
stim/image/image.h
... ... @@ -327,7 +327,7 @@ public:
327 327 void save(std::string filename){
328 328 stim::filename file(filename);
329 329 if (file.extension() == "raw" || file.extension() == "") {
330   - std::ofstream outfile(filename, std::ios::binary);
  330 + std::ofstream outfile(filename.c_str(), std::ios::binary);
331 331 outfile.write((char*)img, sizeof(T) * R[0] * R[1] * R[2]);
332 332 outfile.close();
333 333 }
... ...