Re:A bug in GCC that may cause memory leaks in valid C++ pro...
by johncolanduoni on Thursday April 27, 2017 @08:27PM
(#14215987)
You can do RAII without constructors (e.g. Rust)
Re:A bug in GCC that may cause memory leaks in valid C++ pro...
by CamperBob2 on Thursday April 27, 2017 @09:51PM
(#14216347)
Yep. There are any number of ways that C++ could have supported RAII without requiring either exceptions or a lot of unnecessary hacking, but they didn't.
That's why I don't use RAII. It comes with a massive amount of baggage.