opm/material/common/OpmFinal.hpp File Reference

This file provides a wrapper around the "final" C++-2011 statement. More...

Go to the source code of this file.


Detailed Description

This file provides a wrapper around the "final" C++-2011 statement.

The "final" C++-2011 statement specifies that a virtual method cannot be overloaded by derived classes anymore. This allows the compiler to de-virtualize calls to such methods and is this an optimization. (it also prevents the programmer from creating a new method instead of overloading an existing one, i.e., it is nice to have from a code quality perspective.) Since not all compilers which must be supported by OPM feature the "final" qualifier, this method provides a wrapper macro around it.


Generated on 25 Mar 2018 by  doxygen 1.6.1