3
0
mirror of https://github.com/triqs/dft_tools synced 2024-10-31 19:23:45 +01:00

Fix a bug in buffered function test

This commit is contained in:
Michel Ferrero 2014-06-03 15:24:52 +02:00
parent 6295d563ae
commit bf3833f803

View File

@ -25,7 +25,7 @@ int main(int argc, char **argv) {
// a function that generates all the square .... // a function that generates all the square ....
int x = 0; int x = 0;
auto f = [x]() mutable { return x * (x++); }; auto f = [x]() mutable { auto res=x*x; x++; return res; };
// C++14 : init-capture // C++14 : init-capture
// auto f = [x=0]() mutable { return x*(x++);}; // auto f = [x=0]() mutable { return x*(x++);};