Fix error message when using deprecated storage

When using the old style of storage, you need to declare it as the old
style so that a bridge to the new style can be built in. You get a
compile error message if this is not done. The previous message gave the
wrong instructions.
This commit is contained in:
Kenneth Moreland 2021-01-07 11:28:14 -07:00
parent 5ef4e7eeee
commit 3228752b2d

@ -65,7 +65,8 @@ public:
// Handle the fact that the ArrayHandle design has changed.
VTKM_STATIC_ASSERT_MSG((std::is_same<typename StorageType::HasOldBridge, std::true_type>::value),
"ArrayHandle design has changed. To support old-style arrays, have the "
"Storage implementation subclass StorageDeprecated.");
"Storage implementation declare VTKM_STORAGE_OLD_STYLE at the bottom "
"of its implementation.");
VTKM_CONT static constexpr vtkm::IdComponent GetNumberOfBuffers() { return 1; }
VTKM_CONT vtkm::cont::internal::Buffer* GetBuffers() const
{