It is known that we can't initialize rvalue reference with lvalue, but why can function name?Let me confirm your answer first. The link you gave me is "No, because rvalue references can be init...
It is known that we can't initialize rvalue reference with lvalue, but why can function name?@mbozzi: I disagree. Your link does nothing but repeat my code and say "look, it works". I don't thi...
It is known that we can't initialize rvalue reference with lvalue, but why can function name?It is said that we can't initialize an rvalue reference with an lvalue. For example: [code]int i=0; ...
Why is const gone in the return type?@Peter87: Thank you for referring me to the relevant Standard. I think this is because reference has...
Why is const gone in the return type?[code] template <typename T> const T&& Test(T&& t) { return t; } ...... int i = 0; int&& irr = std...
This user does not accept Private Messages