Fix ‘fs::copy_option’ has not been declared with boost 1.74.0

It was deprecated in
f199152b7d
This commit is contained in:
Louis Sautier 2020-08-20 18:25:48 +02:00
parent 338d0aaa8c
commit c30bae2994
No known key found for this signature in database
GPG Key ID: A777716B30AE82E3
1 changed files with 4 additions and 0 deletions

View File

@ -725,7 +725,11 @@ void Utility::CopyFile(const String& source, const String& target)
{
namespace fs = boost::filesystem;
#if BOOST_VERSION >= 107400
fs::copy_file(fs::path(source.Begin(), source.End()), fs::path(target.Begin(), target.End()), fs::copy_options::overwrite_existing);
#else /* BOOST_VERSION */
fs::copy_file(fs::path(source.Begin(), source.End()), fs::path(target.Begin(), target.End()), fs::copy_option::overwrite_if_exists);
#endif /* BOOST_VERSION */
}
/*