static void stream_do_open(Fstream& s, const fs::path& path, const std::ios_base::openmode mode, typename boost::enable_if<is_std_fstream<Fstream> >::type* = 0) { string file(path.external_file_string()); s.open(file.c_str(), mode); }
static void stream_do_open(Fstream& s, const Path& path, const std::ios_base::openmode mode, typename boost::enable_if<fs::is_basic_path<Path> >::type* = 0, typename boost::enable_if<is_fs_fstream<Fstream> >::type* = 0) { s.open(path, mode); }