Do rvalue references to const have any use?
问题 I guess not, but I would like to confirm. Is there any use for const Foo&& , where Foo is a class type? 回答1: They are occasionally useful. The draft C++0x itself uses them in a few places, for example: template <class T> void ref(const T&&) = delete; template <class T> void cref(const T&&) = delete; The above two overloads ensure that the other ref(T&) and cref(const T&) functions do not bind to rvalues (which would otherwise be possible). Update I've just checked the official standard N3290,