Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
operator/function lookup
MSVC-IsBaseOf
Spirit Lex combining token_id's with semantic actions
C++ move/copy constructor and assignment demo
Regex pipe and tabs c++
accessibility on in-class typedefs
dharmesh
VC++ error LNK2001 with combined use of non-type template parameters
xxx
constmsvc
Please log in to post a comment.