Subject: Re: [Boost-users] Problem using boost::bind with std::map<>
From: Igor R (boost.lists_at_[hidden])
Date: 2011-09-29 13:33:28


>         std::string firstKey(secondKey.compareKey(m_index)->signature());
>
>         map_type::const_iterator findIt(std::find_if(m_records.begin(), m_records.end(), boost::bind(&map_type::key_type::first, _1) == firstKey));

You probably meant map_type::value_type::first.
But why not just m_records.find(firstKey)?