From bd78d658f3cbded4e7d534ab4faa46b6330f55dc Mon Sep 17 00:00:00 2001 From: David Mayerich Date: Mon, 16 Oct 2017 14:42:07 -0500 Subject: [PATCH] Pranathi's image.h fix --- stim/image/image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stim/image/image.h b/stim/image/image.h index a7bde6b..6e2925c 100644 --- a/stim/image/image.h +++ b/stim/image/image.h @@ -327,7 +327,7 @@ public: void save(std::string filename){ stim::filename file(filename); if (file.extension() == "raw" || file.extension() == "") { - std::ofstream outfile(filename, std::ios::binary); + std::ofstream outfile(filename.c_str(), std::ios::binary); outfile.write((char*)img, sizeof(T) * R[0] * R[1] * R[2]); outfile.close(); } -- libgit2 0.21.4