Re:A Usable C++ Dialect That Is Safe Against Memory Corruption
by saagarjha on Thursday March 15, 2018 @02:56PM
(#16595569)
I just vouched for that comment, so it should show up now.
Re:A Usable C++ Dialect That Is Safe Against Memory Corruption
by jeffreyrogers on Thursday March 15, 2018 @02:58PM
(#16595586)
Oh cool, I didn't know you could do that.
This is basically how I program C++. Except that I try to avoid the 'new' keyword too by std::make_unique and std::make_shared. This way there are literally zero 'new' and 'delete' or 'malloc' or 'free' calls in your program.