On 03/10/2010 10:48 AM, Andrei Alexandrescu wrote:
On 03/10/2010 08:42 AM, Andrei Alexandrescu wrote:{auto t = foo.prop; auto t1 = t; ++t1; foo.prop = t1; return t;}()within an rvalue context, and into: {auto t = foo.prop; ++t; foo.prop = t; return t;}() within a void context.The latter should be: {auto t = foo.prop; ++t; foo.prop = t;}() because there's no need to return a value. Andrei
no auto a = foo.prop++; ?