raubarno to Programmer Humor · edit-21 year agoC Compilers be likeimagemessage-square25fedilinkarrow-up1384arrow-down132file-text
arrow-up1352arrow-down1imageC Compilers be likeraubarno to Programmer Humor · edit-21 year agomessage-square25fedilinkfile-text
minus-squareSonotsugipaa@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up2·1 year agoIs it any different from the standard decltype?
minus-squareale@lemmy.worldlinkfedilinkarrow-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.
gcc has typeof, which is pretty neat.
Is it any different from the standard
decltype
?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.