vtkNew move semantics
What are the odds of getting move semantics on a vtkNew
object? Because the copy constructor and assignment have been explicitly deleted, that has dragged move semantics along with them. That makes the vtkNew
class a not-quite unique_ptr
making passing ownership impossible. I'm contemplating creating my own local version of vtkNew
that has such semantics (and yet calls object->Delete()
to otherwise maintain compatibility with the VTK garbage collection). It would be nicer if vtkNew
were truly a VTK-branded unique_ptr
.