3 ms·
The design of C++11 started way before 2011, hence articles from 2008. get_pointer() = 1; assigning 1 to a pointer isn't the best idea :P so I think you mea
by stinos 12y ago
The design of C++11 started way before 2011, hence articles from 2008.
get_pointer() = 1;
assigning 1 to a pointer isn't the best idea :P so I think you mean you read
int& get_reference();
get_reference() = 1;
which is about lvalue references, not rvalue references, and has existed in C++ since the beginning.
- tuhdo 12y agoThanks for the explanation.