From 8cf85ac83860dbb3f258450b1d424304fd0552ec Mon Sep 17 00:00:00 2001 From: Liss Heidrich <31625940+liss-h@users.noreply.github.com> Date: Fri, 6 Dec 2024 12:51:11 +0100 Subject: [PATCH] add missing typedefs --- .../dice/template-library/polymorphic_allocator.hpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/include/dice/template-library/polymorphic_allocator.hpp b/include/dice/template-library/polymorphic_allocator.hpp index 67ccb61..05bdb27 100644 --- a/include/dice/template-library/polymorphic_allocator.hpp +++ b/include/dice/template-library/polymorphic_allocator.hpp @@ -325,20 +325,23 @@ namespace dice::template_library { struct offset_ptr_stl_allocator { using value_type = T; using pointer = boost::interprocess::offset_ptr; + using const_pointer = boost::interprocess::offset_ptr; + using void_pointer = boost::interprocess::offset_ptr; + using const_void_pointer = boost::interprocess::offset_ptr; using size_type = size_t; using difference_type = std::ptrdiff_t; using upstream_allocator_type = Allocator; - using propagate_on_container_copy_assignment = typename std::allocator_traits>::propagate_on_container_copy_assignment; - using propagate_on_container_move_assignment = typename std::allocator_traits>::propagate_on_container_move_assignment; - using propagate_on_container_swap = typename std::allocator_traits>::propagate_on_container_swap; - using is_always_equal = typename std::allocator_traits>::is_always_equal; + using propagate_on_container_copy_assignment = typename std::allocator_traits::propagate_on_container_copy_assignment; + using propagate_on_container_move_assignment = typename std::allocator_traits::propagate_on_container_move_assignment; + using propagate_on_container_swap = typename std::allocator_traits::propagate_on_container_swap; + using is_always_equal = typename std::allocator_traits::is_always_equal; private: template typename> friend struct offset_ptr_stl_allocator; - [[no_unique_address]] Allocator inner_; + [[no_unique_address]] upstream_allocator_type inner_; public: constexpr offset_ptr_stl_allocator() noexcept(std::is_nothrow_default_constructible_v) = default;