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
Post a Comment