Please don’t use shared_ptr
, but unique_ptr
instead. There are zero reasons why these classes should escape and be cooperatively shared around. Also, just do Internals(new vtkInternals)
instead of .reset()
.
Please don’t use shared_ptr
, but unique_ptr
instead. There are zero reasons why these classes should escape and be cooperatively shared around. Also, just do Internals(new vtkInternals)
instead of .reset()
.