c++ - Most important const & rvalue refs -


in c++03 can use const& trick (or "most important const") extend lifetime of temporary lifetime of reference. question is, in c++0x, behaviour extend rvalue references? i.e auto&& x = somefunction();

according [class.temporary], if compiles yes, lifetime of temporary extended.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -