File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
include/boost/container/detail Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments