diff options
Diffstat (limited to '')
-rw-r--r-- | external/boost/c++20-allocator.patch.0 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/external/boost/c++20-allocator.patch.0 b/external/boost/c++20-allocator.patch.0 new file mode 100644 index 000000000..30a34e1b2 --- /dev/null +++ b/external/boost/c++20-allocator.patch.0 @@ -0,0 +1,24 @@ +--- boost/bimap/detail/bimap_core.hpp ++++ boost/bimap/detail/bimap_core.hpp +@@ -404,8 +404,8 @@ + < + relation, + core_indices, +- BOOST_DEDUCED_TYPENAME parameters::allocator:: +- BOOST_NESTED_TEMPLATE rebind<relation>::other ++ typename std::allocator_traits<BOOST_DEDUCED_TYPENAME parameters::allocator>:: ++ BOOST_NESTED_TEMPLATE rebind_alloc<relation> + + > core_type; + +--- boost/format/alt_sstream_impl.hpp ++++ boost/format/alt_sstream_impl.hpp +@@ -258,7 +258,7 @@ + void *vdptr = alloc_.allocate(new_size, is_allocated_? oldptr : 0); + newptr = static_cast<Ch *>(vdptr); + #else +- newptr = alloc_.allocate(new_size, is_allocated_? oldptr : 0); ++ newptr = std::allocator_traits<compat_allocator_type>::allocate(alloc_, new_size, is_allocated_? oldptr : 0); + #endif + } + |