[vtk-developers] VTK Coding Standards, C++11 override and =delete
Brad King
brad.king at kitware.com
Thu May 5 16:30:50 EDT 2016
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
More information about the vtk-developers
mailing list