Sjmarf@sh.itjust.works to Programming Horror@programming.dev · 19 hours agomallocPlusAIsh.itjust.worksimagemessage-square13fedilinkarrow-up1151arrow-down12
arrow-up1149arrow-down1imagemallocPlusAIsh.itjust.worksSjmarf@sh.itjust.works to Programming Horror@programming.dev · 19 hours agomessage-square13fedilink
minus-squarezaphod@sopuli.xyzlinkfedilinkarrow-up10·17 hours agoYou don’t need to cast the return value from malloc.
minus-squareaddielinkfedilinkarrow-up6arrow-down1·16 hours agoTrue. Although given how easy it is to cast void pointers to the wrong damn thing, it would be nice if you did, makes refactoring much easier. Makes me appreciate std::any all the more.
You don’t need to cast the return value from malloc.
True. Although given how easy it is to cast void pointers to the wrong damn thing, it would be nice if you did, makes refactoring much easier. Makes me appreciate
std::any
all the more.