You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
boost171: fix building with C++17
This commit is contained in:
@@ -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; };
|
||||
|
||||
Reference in New Issue
Block a user