|
|
|
|
|
by enjoy-your-stay
1369 days ago
|
|
For the longest time I've written my own smart pointers to manage the lifetime of pretty much anything that needs a cleanup - database connections, query objects, file handles, threads, mutexes and yes raw pointers. All of this code built just fine on pre c++11 compilers, ran reliably, was performant and easy to maintain. Rolling your own smart pointers is not something I'd discourage. |
|