Author
anonymous
over 8 years ago
$
prog.cc:13:12: error: rvalue reference to type 'int' cannot bind to lvalue of type 'int' return r; ^ prog.cc:19:12: warning: unused variable 'x' [-Wunused-variable] auto&& x = foo(i); ^ 1 warning and 1 error generated.