From 3fec38d9cc7c553be4bfdb2071ec2afe7c5bd08d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Mon, 3 Nov 2025 00:12:16 +0100 Subject: [PATCH] Fix -Wcast-qual --- include/boost/container/detail/node_pool_impl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/container/detail/node_pool_impl.hpp b/include/boost/container/detail/node_pool_impl.hpp index 7561223..73c6c29 100644 --- a/include/boost/container/detail/node_pool_impl.hpp +++ b/include/boost/container/detail/node_pool_impl.hpp @@ -173,7 +173,7 @@ class private_node_pool_impl //Unlink the nodes free_nodes.clear(); it = m_blocklist.erase_after(bit); - mp_segment_mngr_base->deallocate((void*)addr); + mp_segment_mngr_base->deallocate(const_cast(addr)); } //Otherwise, insert them in the backup list, since the //next "remove_if" does not need to check them again. @@ -221,7 +221,7 @@ class private_node_pool_impl while(!m_blocklist.empty()){ void *addr = get_block_from_hook(&m_blocklist.front(), blocksize); m_blocklist.pop_front(); - mp_segment_mngr_base->deallocate((void*)addr); + mp_segment_mngr_base->deallocate(const_cast(addr)); } //Just clear free node list m_freelist.clear();