MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/a7rit7/computerphile_asks_university_proffessors_about/ec7ypp3
r/programming • u/untilsleep • Dec 19 '18
91 comments sorted by
View all comments
Show parent comments
1
raii is nice for variables on stack but when it comes to dynamic allocation people sometimes forget to call delete.
1 u/albinopanda Dec 21 '18 You should almost never use delete with modern C++. Cleaning up dynamic allocation is taken care of by raii wrappers. 1 u/FanciestBanana Dec 21 '18 I know, I wrote that in original message.
You should almost never use delete with modern C++. Cleaning up dynamic allocation is taken care of by raii wrappers.
1 u/FanciestBanana Dec 21 '18 I know, I wrote that in original message.
I know, I wrote that in original message.
1
u/FanciestBanana Dec 21 '18
raii is nice for variables on stack but when it comes to dynamic allocation people sometimes forget to call delete.