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:
parent
6295d563ae
commit
bf3833f803
@ -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++);};
|
||||||
|
Loading…
Reference in New Issue
Block a user