mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Fix deprecation warning in MSVC
MSVC tends to give deprecation warnings in templated methods that are used with deprecated classes rather than where the deprecated thing was declared. That makes it annoyingly hard to supress them to implement support of deprecated items.
This commit is contained in:
parent
11a4c9867e
commit
3a7ba1d569
@ -23,7 +23,7 @@ namespace detail
|
||||
VTKM_DEPRECATED_SUPPRESS_BEGIN
|
||||
vtkm::cont::ArrayHandleVirtualCoordinates CoordDataDepWrapper::ToArray() const
|
||||
{
|
||||
return this->Cast<vtkm::cont::ArrayHandleVirtualCoordinates>();
|
||||
return this->AsArrayHandle<vtkm::cont::ArrayHandleVirtualCoordinates>();
|
||||
}
|
||||
VTKM_DEPRECATED_SUPPRESS_END
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user