On Tuesday, 5 May 2020 at 16:41:06 UTC, Adam D. Ruppe wrote:

typeof(return)

Thank you, that was indeed easy!

Is it possible to retrieve also the caller return type? Something like:

```
int foo() {
    return magic();
}

auto magic(maybesomedefaulttemplateargs = ??)() {
    alias R = __traits(???); // --> int!
}
```

Mixin templates maybe?

Reply via email to