mirror of https://github.com/Icinga/icinga2.git
Fix ‘fs::copy_option’ has not been declared with boost 1.74.0
It was deprecated in
f199152b7d
This commit is contained in:
parent
338d0aaa8c
commit
c30bae2994
|
@ -725,7 +725,11 @@ void Utility::CopyFile(const String& source, const String& target)
|
||||||
{
|
{
|
||||||
namespace fs = boost::filesystem;
|
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);
|
fs::copy_file(fs::path(source.Begin(), source.End()), fs::path(target.Begin(), target.End()), fs::copy_option::overwrite_if_exists);
|
||||||
|
#endif /* BOOST_VERSION */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue