$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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)?