throw an error

This commit is contained in:
Samuel Li 2016-08-08 15:20:50 -06:00
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