« first day (1486 days earlier)      last day (1350 days later) » 

3:39 AM
Can we have templated lambdas?
Something like:
template <typename T>
auto func = [=] (T t1, T t2) {    };
?
 
 
6 hours later…
nwp
9:46 AM
@d4rk4ng31 Basically yes. C++20 allows auto func = [=]<typename T>(T t1, T t2) {}
 
 
1 hour later…
11:14 AM
int main(){ int a; scanf("%d",a); return 0;} *
hi
asking a question of c
what are the errors this will give
 
have you tried compiling it yet
 
nwp
11:39 AM
Looks like undefined behavior to me, but it's not ill-formed with diagnostics required, so you are not guarantee any error.
Nowadays compilers warn you when you mismatch format strings with types, but depending on the warning settings you may or may not get to see that.
 

« first day (1486 days earlier)      last day (1350 days later) »