qaz to Programmer [email protected]English • 4 hours agoThe C++ experienceimagemessage-square5arrow-up149arrow-down11
arrow-up148arrow-down1imageThe C++ experienceqaz to Programmer [email protected]English • 4 hours agomessage-square5
minus-square@[email protected]linkfedilink1•4 hours agoThere’s always a destructor though. It may do nothing but it’s there.
minus-square@[email protected]linkfedilink1•2 hours agoYeah the compiler generates it so it’s always there
There’s always a destructor though. It may do nothing but it’s there.
No need to declare it though ofc.
Rule of 0/3/5
Yeah the compiler generates it so it’s always there
Well yes, except when you allocate stuff in the constructor.