Ticket #9825: mutable_heap.2.patch

File mutable_heap.2.patch, 793 bytes (added by Piotr Smulewicz <ps262971@…>, 9 years ago)

patch2

  • .hpp

    old new  
    407407     * */
    408408    void increase(handle_type handle, const_reference v)
    409409    {
    410         BOOST_ASSERT(!value_compare()(v, handle.iterator->first));
     410        BOOST_ASSERT(!static_cast<const value_compare &>(q_.value_comp())(v, handle.iterator->first));
    411411        handle.iterator->first = v;
    412412        increase(handle);
    413413    }
     
    435435     * */
    436436    void decrease(handle_type handle, const_reference v)
    437437    {
    438         BOOST_ASSERT(!value_compare()(handle.iterator->first, v));
     438        BOOST_ASSERT(!static_cast<const value_compare &>(q_.value_comp())(handle.iterator->first, v));
    439439        handle.iterator->first = v;
    440440        decrease(handle);
    441441    }