4 ms·
did you check the header of that cpp? they are storing it in a shared_ptr: shared_ptr = referenced counted pointer = RAII they should have used make_shared, bu
by darkmx0z 6y ago
did you check the header of that cpp? they are storing it in a shared_ptr: shared_ptr = referenced counted pointer = RAII
they should have used make_shared, but it is still safe
- pjmlp 6y agoWhich isn't exception safe, as any good C++ developer would know.