Boost logo

Boost Users :

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


I used lambda expression in my real code.
Indeed,this line is just a part of a lambda expression body,if I give up the line then the whole body will change too. You may think it is unwise.
Please help me to solve it.
Thanks a lot.

 

ÔÚ2009-07-11£¬"Zachary Turner" <divisortheory_at_[hidden]> дµÀ£º
>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 mailing list
>Boost-users_at_[hidden]
>http://lists.boost.org/mailman/listinfo.cgi/boost-users



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