From a5ecbb6bff0e7ee7cc83064f4d606ad109aff84a Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 18 Feb 2015 02:32:29 +1100 Subject: [PATCH] image: use windows friendly path string accessor --- image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.cpp b/image.cpp index 8caf226f..3ea7addc 100644 --- a/image.cpp +++ b/image.cpp @@ -275,7 +275,7 @@ util::pgm::read (const boost::filesystem::path &path) { util::mapped_file raw (path); - std::ifstream cooked (path.c_str (), std::ios::binary); + std::ifstream cooked (path.string (), std::ios::binary); char magic[2]; size_t width, height, scale; char space;