Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58855 - trunk/boost/bimap/container_adaptor
From: matias.capeletto_at_[hidden]
Date: 2010-01-09 16:33:41


Author: matias
Date: 2010-01-09 16:33:41 EST (Sat, 09 Jan 2010)
New Revision: 58855
URL: http://svn.boost.org/trac/boost/changeset/58855

Log:
fix count() constness, ticket #2484
Text files modified:
   trunk/boost/bimap/container_adaptor/associative_container_adaptor.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/bimap/container_adaptor/associative_container_adaptor.hpp
==============================================================================
--- trunk/boost/bimap/container_adaptor/associative_container_adaptor.hpp (original)
+++ trunk/boost/bimap/container_adaptor/associative_container_adaptor.hpp 2010-01-09 16:33:41 EST (Sat, 09 Jan 2010)
@@ -178,7 +178,7 @@
     }
 
     template< class CompatibleKey >
- BOOST_DEDUCED_TYPENAME base_::size_type count(const CompatibleKey & k)
+ BOOST_DEDUCED_TYPENAME base_::size_type count(const CompatibleKey & k) const
     {
         return this->base().count(
             this->template functor<key_to_base>()(k)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk