Hello
Since emscripten uses clang as its front-end compiler, so I think it should
support c++11 lambda function.
But when I try to compile this code by -> emcc labda.cpp
#include <iostream>
using namespace std;
int main()
{
int m = 0;
int n = 0;
[&, n] (int a) mutable { m = ++n + a; }(4);
cout << m << endl << n << endl;
}
it tells me error
<https://lh5.googleusercontent.com/-FYxKvANQxgk/U97wp9hzp1I/AAAAAAAAAVk/KRK6WrWjcBA/s1600/2014-08-04_103152.png>
(I am using version 1.21.0 emscripten.)
Any help ?
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.