Skip to content

Commit

Permalink
core: Add support for Boost 1.81
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed Jan 19, 2023
1 parent 7c003a3 commit c8b1123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/io/writer/h5md_core.cpp
Expand Up @@ -57,9 +57,9 @@ static void backup_file(const std::string &from, const std::string &to) {
* have gone wrong.
*/
boost::filesystem::path pfrom(from), pto(to);
auto constexpr option_fail_if_exists = boost::filesystem::copy_options::none;
try {
boost::filesystem::copy_file(
pfrom, pto, boost::filesystem::copy_option::fail_if_exists);
boost::filesystem::copy_file(pfrom, pto, option_fail_if_exists);
} catch (const boost::filesystem::filesystem_error &) {
throw left_backupfile();
}
Expand Down

0 comments on commit c8b1123

Please sign in to comment.