Open
Description
Even though parameters should have their type preserved to reflect how they were written, deduced return types should be automatically decayed because the type is not explicitly written. For example:
struct A
{
char data[20];
auto f() { return data; }
}
Currently (with recursive TypeInfo
) the return type of f
is extracted as char[20]
. The actual return type of the function is char*
.
Metadata
Metadata
Assignees
Type
Projects
Status
Accepted