mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
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.
This commit is contained in:
parent
6251d8bf2c
commit
632d2a5211
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user