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# - SharpSVN - How to get the previous revision? -

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

url - Querystring manipulation of email Address in PHP -