[vtk-developers] VTK Coding Standards, C++11 override and =delete
Robert Michael O'Bara
bob.obara at kitware.com
Thu May 5 16:41:08 EDT 2016
Actually, doesn't override require the member function to be originally declared virtual?
You can't have function declared both can you?
Bob
Sent from my iPhone
> On May 5, 2016, at 3:30 PM, Brad King <brad.king at kitware.com> wrote:
>
>> On 05/05/2016 04:05 PM, Sean McBride wrote:
>> On Thu, 5 May 2016 15:55:22 -0400, Marcus D. Hanwell said:
>>
>>> One question I have for style, and I may be a minimalist, but using
>>> the virtual and override keyword for the same declaration seems overly
>>> redundant. The override keyword tells me it is overriding a virtual,
>>> couldn't we just use that? I totally agree on its use, and I know both
>>> are correct, but why not replace virtual with override rather than
>>> keeping both?
>>
>> Seems like that would greatly complicate maintaining C++03 compatibility.
>
> C++03 does not require the virtual specifier to be present in overriding
> method declarations either. Some coding style guides even forbid it.
>
> -Brad
>
> _______________________________________________
> 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