|
|
|
|
|
by alphaalpha101
3226 days ago
|
|
There's nothing remotely object-oriented about what I wrote. I don't see any inheritance. I don't see any polymorphism. I don't see any virtual member functions. And of course I'm using RAII to roll back the transaction. When the object is destroyed the vector is destroyed and the transaction isn't run. It doesn't make any sense at all, quite frankly, to use RAII to do what you wrote there. That's not what RAII is for, nor is it what RAII is good at. RAII is for managing resources. |
|