-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boost: apply upstream patches to 1.80.0
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
recipes/boost/all/patches/1.80.0-0005-config-libcpp15.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- a/boost/config/stdlib/libcpp.hpp 2022-08-03 22:47:07.000000000 -0400 | ||
+++ b/boost/config/stdlib/libcpp.hpp 2022-09-16 22:16:17.044119011 -0400 | ||
@@ -168,4 +168,13 @@ | ||
# define BOOST_NO_CXX14_HDR_SHARED_MUTEX | ||
#endif | ||
|
||
+#if _LIBCPP_VERSION >= 15000 | ||
+// | ||
+// Unary function is now deprecated in C++11 and later: | ||
+// | ||
+#if __cplusplus >= 201103L | ||
+#define BOOST_NO_CXX98_FUNCTION_BASE | ||
+#endif | ||
+#endif | ||
+ | ||
// --- end --- |
18 changes: 18 additions & 0 deletions
18
recipes/boost/all/patches/1.80.0-0006-unordered-msvc-rtcc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- a/boost/unordered/detail/prime_fmod.hpp 2022-08-03 22:47:16.000000000 -0400 | ||
+++ b/boost/unordered/detail/prime_fmod.hpp 2022-12-14 01:45:27.368620146 -0500 | ||
@@ -117,9 +117,15 @@ | ||
#if defined(BOOST_UNORDERED_FCA_HAS_64B_SIZE_T) | ||
std::size_t sizes_under_32bit = inv_sizes32_len; | ||
if (BOOST_LIKELY(size_index < sizes_under_32bit)) { | ||
+#if defined(__MSVC_RUNTIME_CHECKS) | ||
+ return fast_modulo( | ||
+ boost::uint32_t(hash & 0xffffffffu) + boost::uint32_t(hash >> 32), | ||
+ inv_sizes32[size_index], boost::uint32_t(sizes[size_index])); | ||
+#else | ||
return fast_modulo( | ||
boost::uint32_t(hash) + boost::uint32_t(hash >> 32), | ||
inv_sizes32[size_index], boost::uint32_t(sizes[size_index])); | ||
+#endif | ||
} else { | ||
return positions[size_index - sizes_under_32bit](hash); | ||
} |