
11 Jul
2009
11 Jul
'09
3:32 a.m.
2009/7/10 fmingu <fmingu@163.com>:
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?