Skip to content

Commit 3fec38d

Browse files
committed
Fix -Wcast-qual
1 parent 5923493 commit 3fec38d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/container/detail/node_pool_impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class private_node_pool_impl
173173
//Unlink the nodes
174174
free_nodes.clear();
175175
it = m_blocklist.erase_after(bit);
176-
mp_segment_mngr_base->deallocate((void*)addr);
176+
mp_segment_mngr_base->deallocate(const_cast<void*>(addr));
177177
}
178178
//Otherwise, insert them in the backup list, since the
179179
//next "remove_if" does not need to check them again.
@@ -221,7 +221,7 @@ class private_node_pool_impl
221221
while(!m_blocklist.empty()){
222222
void *addr = get_block_from_hook(&m_blocklist.front(), blocksize);
223223
m_blocklist.pop_front();
224-
mp_segment_mngr_base->deallocate((void*)addr);
224+
mp_segment_mngr_base->deallocate(const_cast<void*>(addr));
225225
}
226226
//Just clear free node list
227227
m_freelist.clear();

0 commit comments

Comments
 (0)