From efde6199972185fe011cb19483c13b6b714a699e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Mon, 12 Dec 2022 00:43:49 +0100 Subject: [PATCH] Use remove_const to correctly extract key_type from value_type, as the typical case is pair --- include/boost/container/detail/tree.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/container/detail/tree.hpp b/include/boost/container/detail/tree.hpp index 7f26e1f..af6adca 100644 --- a/include/boost/container/detail/tree.hpp +++ b/include/boost/container/detail/tree.hpp @@ -425,7 +425,8 @@ class tree public: - typedef typename key_of_value_t::type key_type; + typedef typename dtl::remove_const + ::type key_type; typedef T value_type; typedef Compare key_compare; typedef ValComp value_compare;