minus-squareale@lemmy.worldtoProgrammer Humor@lemmy.ml•C Compilers be likelinkfedilinkarrow-up4·1 year agoGood question. I didn’t know about decltype. I guess they are slightly different in that decltype will also produce a type reference. Typeof just produces the type, even if you call on a reference. linkfedilink
minus-squareale@lemmy.worldtoProgrammer Humor@lemmy.ml•C Compilers be likelinkfedilinkarrow-up12·1 year agogcc has typeof, which is pretty neat. linkfedilink
Good question. I didn’t know about decltype. I guess they are slightly different in that decltype will also produce a type reference. Typeof just produces the type, even if you call on a reference.