Boost logo

Boost Users :

Subject: Re: [Boost-users] [phoenix] how to compare std:string
From: Joel de Guzman (joel_at_[hidden])
Date: 2009-07-12 01:51:56


Michael Caisse wrote:
> Joel de Guzman wrote:
>> Michael Caisse wrote:
>>> Hi all -
>>>
>>> I have a vector of std::pair< std::string, int > and I want to use
>>> std::find_if to get the location where the std::pair first is some
>>> string value.
>>> I have successfully performed the correct incantation to compare the
>>> std::pair second to an int; however, it eludes me to what I need for
>>> the string.
>>>
>>>
>>> This is my test ----------------------------------
>> [...]
>>
>> Try:
>>
>> #include <string>
>>
>> Cheers,
>
> How embarrassing. Thank you Joel!

Most welcome. Happens to me all the time, that's
why I knew at once :-)

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net