On Nov 27, 11:19 pm, Mathias Gaunard <
loufo...@gmail.com> wrote:
>
> GCC only supports it since 4.5, and only in C++0x mode, which is not
> the default.
> A lot of people still use older versions of GCC.
>
> Likewise, a lot of people still use older versions of MSVC.
I think it's pretty obvious that there are older versions of almost
any compiler, and that those older versions do not support C++11
features. Therefore the OP was asking about "modern" compilers.
On Nov 26, 3:51 am, Andy Champ <no....@nospam.invalid> wrote:
>
> MSVC's lambdas have a fair few bugs in them. for example
>
>
http://connect.microsoft.com/VisualStudio/feedback/details/537366/c-n...
>
> "Closed as Fixed"
>
> ....
>
> "Hi: a fix for this issue has been checked into the compiler sources.
> The fix should show up in a future release of Visual C++."
>
It seems they messed up the whole name lookup in or near lambdas. In
addition to the bug you mention, I found something very astonishing
one day:
http://connect.microsoft.com/VisualStudio/feedback/details/689504/c2326-on-lambdas-with-this-capture
@topic:
another compiler that supports some C++11 Features (such as variadic
templates, auto type specifier, decltype and more) but does not
support lambdas is IBM's XL C/C++ 11.1 for AIX (I am not shure about
current versions for XL C++ for other platforms)
Regards
Arne