From 632d2a52110aad1ced14d53ada01d930b79862e0 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Tue, 15 Nov 2016 17:03:59 -0500 Subject: [PATCH] Thrust 1.8.3 uses raw_reference_cast instead of a direct assignment operator This usage of raw_referenc_cast returns a const PortalValue which is than assigned too. So to work around the problem we need to mark operator= on the class as const. --- vtkm/exec/cuda/internal/IteratorFromArrayPortal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vtkm/exec/cuda/internal/IteratorFromArrayPortal.h b/vtkm/exec/cuda/internal/IteratorFromArrayPortal.h index 474b2de79..206ffa5f9 100644 --- a/vtkm/exec/cuda/internal/IteratorFromArrayPortal.h +++ b/vtkm/exec/cuda/internal/IteratorFromArrayPortal.h @@ -65,7 +65,7 @@ struct PortalValue } VTKM_EXEC_EXPORT - ValueType operator=(const ValueType& value) + ValueType operator=(const ValueType& value) const { this->Portal.Set(this->Index, value); return value;