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:
Kenneth Moreland 2021-02-22 06:32:10 -07:00
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