← Back to team overview

dolfin team mailing list archive

Re: virtual methods

 



Ola Skavhaug wrote:
According to http://developer.kde.org/~wheeler/cpp-pitfalls.html:

Note: While it is not required to use the virtual keyword in our subclass
implementations (since if the base class implementation is virtual all
subclass implementations will be virtual) it is still good style to do so.

I don't think DOLFIN does this.

No, it doesn't.

Should we put adding the virtual keyword to
virtual methods on the todo-list? After all, the virtual keyword adds
information to the user.


I'm indifferent.

Garth

Ola
_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev




Follow ups

References