|
Boost Users : |
Subject: Re: [Boost-users] [Phoenix] for_each calling push_back for stl containers
From: Joel de Guzman (joel_at_[hidden])
Date: 2012-07-12 21:46:12
On 7/12/2012 10:17 PM, Ryan wrote:
> On Wed, Jul 11, 2012 at 4:08 PM, Joel de Guzman <joel_at_[hidden]
> <mailto:joel_at_[hidden]>> wrote:
>
> On 7/12/2012 12:38 AM, Ryan wrote:
>
> On Tue, Jul 10, 2012 at 7:02 PM, Joel de Guzman <joel_at_[hidden]
> <mailto:joel_at_[hidden]>
> <mailto:joel_at_boost-consulting.__com <mailto:joel_at_[hidden]>>> wrote:
>
> Hmm, I can never tell unless I see a minimal cpp file I can try.
>
> I've included a minimal .cpp that produces the undesired behavior.
>
>
> Sorry I can't find it. Could you point me to it again, please?
>
>
> I've tried including it again.
You did not evaluate it. Try adding a () at the end:
phx::for_each(phx::ref(tokens),
phx::lambda
[
phx::push_back(phx::ref(string_tokens), phx::arg_names::arg1)
]
)();
Regards,
-- Joel de Guzman http://www.boostpro.com http://boost-spirit.com
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