3 ms·
You can do RAII without constructors (e.g. Rust)
by johncolanduoni 10y ago
You can do RAII without constructors (e.g. Rust)
- CamperBob2 10y agoYep. 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.