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
Struct packing
#21.2
Regex failure
Templatized Visitor Pattern Example
imdying
MSVC alias template
multiplie linked list numbers
Computing factorial of an integer with recursion and iteration
#27
1