Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
rvalue lifetime
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23026 for x86 #include <iostream> using namespace std; class A{ public: int get() { return 1; } }; A&& getA() { return A(); } int main() { A&& a = getA(); cout << a.get() <<endl; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
#30.1
#22.2
auto decltype - Return Type Deduction C++ | C++14
Test
empty base bug
What is the fastest/most efficient way to find the highest set bit (msb) in an integer in C?
rang_warnings
ADL of operator expression & unqualified function call
Integral constant
Visual C++ template instantiation
Please log in to post a comment.