Boost logo

Boost Users :

Subject: Re: [Boost-users] [phoenix] [range] I think I'm missing a couple things w/ these libs
From: Nathan Crookston (nathan.crookston_at_[hidden])
Date: 2011-04-06 18:57:46

On Wed, Apr 6, 2011 at 4:42 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
> I get errors too with 1.46.0.  It looks
> like it's because transform_iterator doesn't
> use result_of.  IIRC, this was fixed /very/
> recently.

Phoenix v2 is tricky to use with transform due to result_of -- for
one, there was the bug Steven mentioned with transform_iterator. For
two, Phoenix v2's return type deduction mechanism is different than
that used by result_of. Phoenix v3 uses result_of and should then be
interoperable with boost::adaptors::transformed. For the time being
it may be better to use boost::bind in this case.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at