3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-24 13:23:37 +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 ....
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
// auto f = [x=0]() mutable { return x*(x++);};