blob: d2909ded9b88d7099a179334b81ad714eda8d67d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- src/hugin_base/hugin_utils/filesystem.h.old 2023-05-08 20:19:14.000000000 +0200
+++ src/hugin_base/hugin_utils/filesystem.h 2024-04-21 10:00:22.770138350 +0200
@@ -64,6 +64,12 @@
#endif
#include <boost/filesystem.hpp>
namespace fs = boost::filesystem;
- #define OVERWRITE_EXISTING boost::filesystem::copy_option::overwrite_if_exists
+ #if BOOST_VERSION>=107400
+ // in Boost 1.74 and later filesystem::copy_option is deprecated
+ // use filesystem::copy_options instead
+ #define OVERWRITE_EXISTING boost::filesystem::copy_options::overwrite_existing
+ #else
+ #define OVERWRITE_EXISTING boost::filesystem::copy_option::overwrite_if_exists
+ #endif
#endif
#endif // _HUGIN_UTILS_FILESYSTEM_H
|