7 ms·
Seems to me that really the simplest solution to authors problem is to write C++ safely. I mean...this is a trivial utility app. If you can't get that right in
by samiv 7mo ago
Seems to me that really the simplest solution to authors problem is to write C++ safely. I mean...this is a trivial utility app. If you can't get that right in modern C++ you should probably just not even pretend to be a C++ programmer.
- rwmj 7mo agoJust write C++ safely! Why didn't we think of that?
- array_key_first 7mo agoC++ is hard to get safe in complex systems with hard performance requirements. If the system is simple and you don't give a shit about performance, it's very very easy to make C++ safe. Just use shared_ptr everywhere. Or, throw everything in a vector and don't destroy it until the end of the program. Whatever, who cares.
- flufluflufluffy 7mo agoYeah he literally answered his own question and then used a random excuse for not going with the option.