Ticket #2484: associative_container_adaptor-count-const-fix.patch

File associative_container_adaptor-count-const-fix.patch, 543 bytes (added by Gonzalo Matamala <gonmator@…>, 13 years ago)
  • associative_container_adaptor.hpp

     
    178178    }
    179179
    180180    template< class CompatibleKey >
    181     BOOST_DEDUCED_TYPENAME base_::size_type count(const CompatibleKey & k)
     181    BOOST_DEDUCED_TYPENAME base_::size_type count(const CompatibleKey & k) const
    182182    {
    183183        return this->base().count(
    184184            this->template functor<key_to_base>()(k)