Boost logo

Boost Users :

Subject: Re: [Boost-users] A question on data change with lambda expression. Can any one with kindness help me?
From: Zachary Turner (divisortheory_at_[hidden])
Date: 2009-07-10 23:32:06


2009/7/10 fmingu <fmingu_at_[hidden]>:
> Do you mean :
>    (
> bind(&IIPrimemap::value_type::second,(*bind(static_cast<IIPrimemap::iterator
> (IIPrimemap::*)()> (&IIPrimemap::end),var(primemapvec))))())++;
> or:
>  bind(&IIPrimemap::value_type::second,(*bind(static_cast<IIPrimemap::iterator
> (IIPrimemap::*)()> (&IIPrimemap::end),var(primemapvec))))()++; ?
> but I still can not get the changed value.
> Can you give me further suggestions?
> Thanks a lot.

Honestly that code is really hard to read, and seems like an abuse of
lambda expressions. Are you planning on using that in real code or
are you just trying to do this as an exercise?


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