From: Daniel Arndt Date: Mon, 4 May 2020 14:19:01 +0000 (-0400) Subject: Avoid allocator::pointer removed in C++20 in Boost X-Git-Tag: v9.2.0-rc1~134^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3001f46f86b12b5e7b49353f1b9a40aa7de3cca;p=dealii.git Avoid allocator::pointer removed in C++20 in Boost --- 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;