[cfe-dev] [RFC PATCH] C++0x trailing return type

Sebastian Redl sebastian.redl at getdesigned.at
Wed Sep 22 11:49:14 PDT 2010


On Sep 22, 2010, at 11:30 AM, Daniel Wallin wrote:

> <trailing-return.patch>

Very nice! One important thing, though, is that the trailing return type is really a property of the declaration, not of the type. In particular, you made type uniquing dependent on whether the return type is trailing, which is incorrect:
int f();
and
auto f() -> int;
declare the same function; the type is the same.

Sebastian



More information about the cfe-dev mailing list