mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Suppress deprecation warnings in deprecated class
The implementation of a deprecated class should not give deprecation warnings from its own implementation.
This commit is contained in:
parent
a6725b3acd
commit
8c66237364
@ -39,6 +39,7 @@ public:
|
||||
VTKM_EXEC_CONT virtual Scalar Value(const Vector& point) const = 0;
|
||||
VTKM_EXEC_CONT virtual Vector Gradient(const Vector& point) const = 0;
|
||||
|
||||
VTKM_DEPRECATED_SUPPRESS_BEGIN
|
||||
VTKM_EXEC_CONT Scalar Value(Scalar x, Scalar y, Scalar z) const
|
||||
{
|
||||
return this->Value(Vector(x, y, z));
|
||||
@ -48,6 +49,7 @@ public:
|
||||
{
|
||||
return this->Gradient(Vector(x, y, z));
|
||||
}
|
||||
VTKM_DEPRECATED_SUPPRESS_END
|
||||
};
|
||||
#endif // VTKM_NO_DEPRECATED_VIRTUAL
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user