Ticket #9825: mutable_heap.patch
File mutable_heap.patch, 794 bytes (added by , 9 years ago) |
---|
-
.hpp
old new 407 407 * */ 408 408 void increase(handle_type handle, const_reference v) 409 409 { 410 BOOST_ASSERT(! value_compare()(v, handle.iterator->first));410 BOOST_ASSERT(!static_cast<const value_compare &>(!q_.value_comp())(v, handle.iterator->first)); 411 411 handle.iterator->first = v; 412 412 increase(handle); 413 413 } … … 435 435 * */ 436 436 void decrease(handle_type handle, const_reference v) 437 437 { 438 BOOST_ASSERT(! value_compare()(handle.iterator->first, v));438 BOOST_ASSERT(!static_cast<const value_compare &>(q_.value_comp())(handle.iterator->first, v)); 439 439 handle.iterator->first = v; 440 440 decrease(handle); 441 441 }