[vtk-developers] VTK Coding Standards, C++11 override and =delete

Robert Maynard robert.maynard at kitware.com
Thu Jun 16 13:29:34 EDT 2016


I like the introduction of a delete function. +1

On Thu, Jun 16, 2016 at 12:56 PM, Sean McBride <sean at rogue-research.com> wrote:
> On Thu, 5 May 2016 15:55:22 -0400, Marcus D. Hanwell said:
>
>>> Relatedly, I've added a VTK_DELETE_FUNCTION here:
>>> <https://gitlab.kitware.com/vtk/vtk/merge_requests/1459>
>>>
>>> and that implies changing Item 14, which currently reads: "Classes
>>that derive from vtkObject should have protected constructors and
>>destructors, and privately declared but unimplemented copy constructor
>>and assignment operator."  We should now say that VTK_DELETE_FUNCTION
>>should be used.
>>>
>>Seems reasonable to me. Both require a large number of changes
>
> I just realized that we discussed & agreed about 'override', but '=delete' fell by the wayside.
>
> What do we all think about:
>
>  1) changing coding standards item 14:
>  <https://docs.google.com/a/kitware.com/document/d/1nzinw-dR5JQRNi_gb8qwLL5PnkGMK2FETlQGLr10tZw/edit>
>
>  2) adding a VTK_DELETE_FUNCTION, see:
>  <https://gitlab.kitware.com/vtk/vtk/merge_requests/1459>
>
> Cheers,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>


More information about the vtk-developers mailing list