mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-21 03:25:48 +00:00
throw an error
This commit is contained in:
parent
71454c11b4
commit
2b3e2f2fc7
@ -143,8 +143,8 @@ public:
|
||||
void Allocate( vtkm::Id numberOfValues )
|
||||
{
|
||||
VTKM_ASSERT( this->valid );
|
||||
VTKM_ASSERT( numberOfValues > 0 );
|
||||
// throw an error; not a valid operation for this array handle.
|
||||
throw vtkm::cont::Error(
|
||||
"ArrayHandleConcatenate should not be allocated explicitly.");
|
||||
}
|
||||
|
||||
VTKM_CONT_EXPORT
|
||||
|
Loading…
Reference in New Issue
Block a user