minus-squarearendjr@programming.devOPtoProgramming@programming.dev•Feds: Critical Software Must Drop C/C++ by 2026 or Face Risklinkfedilinkarrow-up0·edit-214 days agoUsing smart pointers doesn’t eliminate the memory safety issue, it merely addresses one aspect of it. Even with smart pointers, nothing is preventing you from passing references and using them after they’re freed. linkfedilink
arendjr@programming.dev to Programming@programming.devEnglish · 14 days agoFeds: Critical Software Must Drop C/C++ by 2026 or Face Riskplus-squarethenewstack.ioexternal-linkmessage-square9fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1external-linkFeds: Critical Software Must Drop C/C++ by 2026 or Face Riskplus-squarethenewstack.ioarendjr@programming.dev to Programming@programming.devEnglish · 14 days agomessage-square9fedilink
Using smart pointers doesn’t eliminate the memory safety issue, it merely addresses one aspect of it. Even with smart pointers, nothing is preventing you from passing references and using them after they’re freed.