boost-1.74-8184.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. From c30bae2994f1e5f33f6da51eb96d423e9bf0f75c Mon Sep 17 00:00:00 2001
  2. From: Louis Sautier <sautier.louis@gmail.com>
  3. Date: Thu, 20 Aug 2020 18:25:48 +0200
  4. Subject: [PATCH] =?UTF-8?q?Fix=20=E2=80=98fs::copy=5Foption=E2=80=99=20has?=
  5. =?UTF-8?q?=20not=20been=20declared=20with=20boost=201.74.0?=
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. It was deprecated in
  10. https://github.com/boostorg/filesystem/commit/f199152b7df036ff1606c85e4ea1b28edfeda6cc
  11. ---
  12. lib/base/utility.cpp | 4 ++++
  13. 1 file changed, 4 insertions(+)
  14. diff --git a/lib/base/utility.cpp b/lib/base/utility.cpp
  15. index 1add7616c6..d8e6f20b0c 100644
  16. --- a/lib/base/utility.cpp
  17. +++ b/lib/base/utility.cpp
  18. @@ -725,7 +725,11 @@ void Utility::CopyFile(const String& source, const String& target)
  19. {
  20. namespace fs = boost::filesystem;
  21. +#if BOOST_VERSION >= 107400
  22. + fs::copy_file(fs::path(source.Begin(), source.End()), fs::path(target.Begin(), target.End()), fs::copy_options::overwrite_existing);
  23. +#else /* BOOST_VERSION */
  24. fs::copy_file(fs::path(source.Begin(), source.End()), fs::path(target.Begin(), target.End()), fs::copy_option::overwrite_if_exists);
  25. +#endif /* BOOST_VERSION */
  26. }
  27. /*