Skip to content
Snippets Groups Projects
Commit 0f47e751 authored by Marco Biasini's avatar Marco Biasini
Browse files

fix compilation with boost 1.33.1

parent 52948683
Branches
Tags
No related merge requests found
......@@ -37,6 +37,16 @@ String BFPathToString(const boost::filesystem::path& path)
#endif
}
inline String BFPathStem(const boost::filesystem::path& path) {
#if BOOST_FILESYSTEM_VERSION<103400
String name = BFPathToString(path);
size_t n = name.rfind('.');
return name.substr(0, n);
#else
return path.stem();
#endif
}
}
......
......@@ -370,7 +370,7 @@ int main(int argc, char *argv[])
}
if (write_to_file) {
fs::path input_file_path(files[i]);
fs::path input_filename = input_file_path.stem();
fs::path input_filename = BFPathStem(input_file_path);
String input_filename_string=BFPathToString(input_filename);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment