From b3001f46f86b12b5e7b49353f1b9a40aa7de3cca Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 4 May 2020 10:19:01 -0400 Subject: [PATCH] Avoid allocator::pointer removed in C++20 in Boost --- .../include/boost/signals2/detail/auto_buffer.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bundled/boost-1.70.0/include/boost/signals2/detail/auto_buffer.hpp b/bundled/boost-1.70.0/include/boost/signals2/detail/auto_buffer.hpp index 5ff8dd2c63..5f2664a8ab 100644 --- a/bundled/boost-1.70.0/include/boost/signals2/detail/auto_buffer.hpp +++ b/bundled/boost-1.70.0/include/boost/signals2/detail/auto_buffer.hpp @@ -142,7 +142,11 @@ namespace detail typedef typename Allocator::size_type size_type; typedef typename Allocator::difference_type difference_type; typedef T* pointer; +#ifdef BOOST_NO_CXX11_ALLOCATOR typedef typename Allocator::pointer allocator_pointer; +#else + typedef typename std::allocator_traits::pointer allocator_pointer; +#endif typedef const T* const_pointer; typedef T& reference; typedef const T& const_reference; -- 2.39.5