Should I use C++11 lambdas now?

Here is my dilemma: I really like lambda and have been using Boost.Fusion and Phoenix a lot lot. They are pretty mature and play nicely across many compilers.

What about the C++11 lambdas? They are really nice and much more easier to use then boost alternatives (no more functors!). Recent ICC and GCC compilers support them. But there are still lots of ICC 9.x and GCC 4.1 and below systems not to mention XL and Sun compilers. Do those compilers offer lambda support?

I tend to think that perhaps I should wait to use C++11 features lest older systems reject the code. What do you think? Wait till older compilers fade away or just do it?

7
задан James McNellis 10 March 2012 в 03:55
поделиться