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? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -