Is there some syntactic space in trailing return types?
Something like
auto Func(void) -> mutex _Retvar
would feel to be the most logical solution.
-----Ursprüngliche Nachricht-----
Von: Frederick Virchanza Gotham via Std-Proposals <std-proposals@lists.isocpp.org>
Gesendet: So 19.05.2024 13:58
Betreff: Re: [std-proposals] std::elide
An: std-proposals@lists.isocpp.org;
CC: Frederick Virchanza Gotham <cauldwell.thomas@gmail.com>;
Also we could mark the definition (but not the declaration) of an NRVO function as follows:mutex Func(void) _Retvar{// implementation}
Why not optionally mark the declaration? Function parameter names (not only types) can also be named for both.