image: use windows friendly path string accessor

This commit is contained in:
Danny Robson 2015-02-18 02:32:29 +11:00
parent c7a868beac
commit a5ecbb6bff

View File

@ -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;