Sujet : Re: C23 auto x C++ auto.
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 07. Jun 2024, 01:50:51
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v3tlhb$1o860$6@dont-email.me>
References : 1 2 3 4
User-Agent : Pan/0.158 (Avdiivka; )
On Sun, 26 May 2024 13:38:08 -0300, Thiago Adams wrote:
I am trying to remember the situation where typeof cannot be used,
justifying the existence of auto other than "easy to read".
As one example, if the type definition includes “const”, then trying to
use “typeof” to define a variable to assign to will of course fail. That’s
why you have “typeof_unqual”.