boost171: fix building with C++17

This commit is contained in:
Mohamed Akram
2024-12-22 19:29:26 +04:00
parent 06a816765f
commit ace4d1a045
2 changed files with 23 additions and 0 deletions
+3
View File
@@ -102,6 +102,9 @@ patchfiles-append patch-add-support-for-arm64.diff
# https://trac.macports.org/ticket/67324
patchfiles-append patch-boost-clang16-cpp17-compat.diff
# Fix building with C++17
patchfiles-append patch-boost-cpp17-compat.diff
proc write_jam s {
global worksrcpath
set config [open ${worksrcpath}/user-config.jam a]
@@ -0,0 +1,20 @@
--- boost/container_hash/hash.hpp.orig 2019-08-14 16:02:24
+++ boost/container_hash/hash.hpp 2024-12-22 19:24:16
@@ -118,17 +118,12 @@
{
namespace hash_detail
{
-#if defined(_HAS_AUTO_PTR_ETC) && !_HAS_AUTO_PTR_ETC
template <typename T>
struct hash_base
{
typedef T argument_type;
typedef std::size_t result_type;
};
-#else
- template <typename T>
- struct hash_base : std::unary_function<T, std::size_t> {};
-#endif
struct enable_hash_value { typedef std::size_t type; };