8

So much talk about lambda functions... So I tried to write mine. :(. It did not work. Does g++ 4.3.2 support lambda functions? How to find out whether it supports a certain c++0x feature or not?

nakiya
  • 14,063
  • 21
  • 79
  • 118

1 Answers1

10

Take a look at Apaches C++0x Compiler Support page or GCCs C++0x pages. Only GCC >= 4.5 supports lambda functions.

If you need to write something that optionally takes advantage of lambda support you could do so conditionally depending on the GCC version or Boost.Configs BOOST_NO_LAMBDAS.

Georg Fritzsche
  • 97,545
  • 26
  • 194
  • 236