From 2cdcbd24f52692e61cb49033b75808da1442677a Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Thu, 22 Dec 2022 14:17:52 -0800 Subject: [PATCH] Catch remaining places where value_type was used instead of storage_type --- include/boost/unordered/detail/foa.hpp | 4 ++-- include/boost/unordered/unordered_node_map.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index 9e7c1391..da63318f 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1621,8 +1621,8 @@ private: struct destroy_element_on_exit { ~destroy_element_on_exit(){this_->destroy_element(p);} - table *this_; - value_type *p; + table *this_; + storage_type *p; }; void copy_elements_from(const table& x) diff --git a/include/boost/unordered/unordered_node_map.hpp b/include/boost/unordered/unordered_node_map.hpp index fe5e6132..4ba8ead6 100644 --- a/include/boost/unordered/unordered_node_map.hpp +++ b/include/boost/unordered/unordered_node_map.hpp @@ -168,7 +168,7 @@ namespace boost { return kv->first; } - static value_type&& move(storage_type& x) { return std::move(x); } + static storage_type&& move(storage_type& x) { return std::move(x); } }; using table_type = detail::foa::table