Boost logo

Boost :

Subject: Re: [boost] Search a vector of tuples?
From: Robert Dailey (rcdailey.lists_at_[hidden])
Date: 2012-04-23 17:46:29


On Mon, Apr 23, 2012 at 4:34 PM, Robert Dailey <rcdailey.lists_at_[hidden]>wrote:

>
> On Mon, Apr 23, 2012 at 4:25 PM, Nathan Ridge <zeratul976_at_[hidden]>wrote:
>
>>
>> > I can't use phoenix, I'm still on boost 1.46.1.
>>
>> Phoenix is present in boost 1.46, in a subdirectory of Spirit.
>
>
> Oh thanks. What namespace is it in? I tried boost::spirit::phoenix, and
> boost::phoenix... nothing works.
>

Looks like the namespace is just 'phoenix'. There is no
phoenix::placeholders namespace in 1.46 apparently, I'm including
<boost/spirit/include/phoenix1.hpp>. I hope that's right. My code still
isn't working:

        std::find_if( mystrings.begin(), mystrings.end(),
bind(&Tuple::get<0>, arg1) == error_code );

I changed _1 to arg1 per the documentation (argN seems to be the
phoenix-way). I only have a 'using namespace phoenix;' above that.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk