Reintroduce ArrayRangeCompute.hxx as deprecated

ArrayRangeCompute.hxx was removed, but other code may be including it.
The file was replaced. It now just includes its replacement
(ArrayRangeComputeTemplate.h) and forces a deprecation warning.
This commit is contained in:
Kenneth Moreland 2020-11-10 09:58:50 -07:00
parent 7d681fb585
commit a88e0d9149
3 changed files with 33 additions and 3 deletions

@ -0,0 +1,29 @@
//============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the above copyright notice for more information.
//============================================================================
#ifndef vtk_m_cont_ArrayRangeCompute_hxx
#define vtk_m_cont_ArrayRangeCompute_hxx
#include <vtkm/Deprecated.h>
#include <vtkm/cont/ArrayRangeComputeTemplate.h>
namespace vtkm
{
VTKM_DEPRECATED(1.6, "Use ArrayRangeComputeTemplate.h instead of ArrayRangeCompute.hxx.")
inline void ArrayRangeCompute_hxx_deprecated() {}
inline void ActivateArrayRangeCompute_hxx_deprecated_warning()
{
ArrayRangeCompute_hxx_deprecated();
}
} // namespace vtkm
#endif //vtk_m_cont_ArrayRangeCompute_hxx

@ -7,8 +7,8 @@
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the above copyright notice for more information.
//============================================================================
#ifndef vtk_m_cont_ArrayRangeCompute_hxx
#define vtk_m_cont_ArrayRangeCompute_hxx
#ifndef vtk_m_cont_ArrayRangeComputeTemplate_h
#define vtk_m_cont_ArrayRangeComputeTemplate_h
#include <vtkm/cont/ArrayRangeCompute.h>
@ -154,4 +154,4 @@ inline vtkm::cont::ArrayHandle<vtkm::Range> ArrayRangeCompute(
}
} // namespace vtkm::cont
#endif //vtk_m_cont_ArrayRangeCompute_hxx
#endif //vtk_m_cont_ArrayRangeComputeTemplate_h

@ -124,6 +124,7 @@ set(headers
set(template_sources
ArrayHandle.hxx
ArrayRangeCompute.hxx # Deprecated, replaced with ArrayRangeComputeTemplate.h
CellSetExplicit.hxx
CellSetExtrude.hxx
CellSetStructured.hxx