Horrible code. First, it doesn’t compile because there’s no ; at the end of the class definition.
And then more importantly you have a private destructor which means this CriminalScum’s destructor will never be called, so you can’t charge it with distruction either. Or are you telling me this CriminalScum has friends?
Also, if I’m not mistaken the uninitialized prop is not guaranteed to be nullptr here, so this private destructor could be trying to free from some random pointer.
Horrible code. First, it doesn’t compile because there’s no
;
at the end of the class definition.And then more importantly you have a private destructor which means this CriminalScum’s destructor will never be called, so you can’t charge it with distruction either. Or are you telling me this CriminalScum has friends?
There’s always an accomplice in crime.
Also, tall order to expect me to run and test a code written only for a shitpost.
You’re charging the class for a thought crime!!
Also, if I’m not mistaken the uninitialized
prop
is not guaranteed to benullptr
here, so this private destructor could be trying to free from some random pointer.Removed by mod
Yep, variables that are merely declared are not initialized, so their value is not guaranteed. Could be anything.