4 ms·
Maybe this one is simpler: http://onlinehut.org/2013/01/smart-pointers-are-not-just-for-memory/ http://onlinehut.org/2013/01/smart-pointers-are-not-just-for...
by 10098 12y ago
Maybe this one is simpler:
http://onlinehut.org/2013/01/smart-pointers-are-not-just-for-memory/ http://onlinehut.org/2013/01/smart-pointers-are-not-just-for...
though I was trying to use that method to manage handles, not pointers. I eventually had to write a wrapper for handles for it to fulfill the requirements imposed by unique_ptr.