Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Error with move capture of a const ref in a lambda function
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x86 #include <utility> struct T { int a; }; void f(const T &t) { // T v = std::move(t); // this works auto l = [u=std::move(t)] // this works both with gcc and clang { }; } int main() { return 0; }
run
|
edit
|
history
|
help
0
infix to postfix v 1.0
Dices by GOOSE
return reference (msvc)
MSVCStatic
Not an overflow
Problem_onoff_3
Struct packing
Dequeue Using STL List
map_file_mangling
PTaHHHa