Jean-Sebastien Delfino wrote:
GCC 4.5 just got released [1] and now supports lambda expressions [2] as specified in the upcoming C++0x ISO C++ standard [3].

I'm finally going to be able to replace the homegrown templates used for lambdas in the sca-cpp source tree (which were temporary, waiting for GCC 4.5 to support the real thing) by the standard syntax [4][5].

The current trunk compiles OK with both gcc-4.4 and gcc-4.5. I'm going to save it in a branches/gcc-4.4 branch and try to start the conversion of trunk to the standard lambda syntax supported by gcc-4.5 some time this weekend.

The branches/gcc-4.4 branch has been created and the trunk source tree now requires gcc-4.5.

I also had a good surprise and found that the C++0x lambda expressions nicely interoperate with the homegrown lambda function objects used in the sca-cpp source tree.

That was not a complete surprise as I had designed these lambda function objects to be compatible with the upcoming C++0x lambda expressions in the first place, but I was not sure if that was going to work at all...

Well, it works, so I'll be able to avoid a big-bang migration and will migrate to the C++0x lambda expressions one module at a time over the next few weeks.

[1] http://gcc.gnu.org/gcc-4.5/
[2] http://en.wikipedia.org/wiki/Lambda_calculus
[3] http://gcc.gnu.org/gcc-4.5/cxx0x_status.html
[4] http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2927.pdf
[5] http://open-std.org/JTC1/SC22/WG21/docs/papers/2008/n2798.pdf
--
Jean-Sebastien

Reply via email to