Remove PortalType from ArrayHandleImplicitTraits

The type for PortalType was declared before the class from which the
type came from. Normally this was not a big deal since the template was
resolved later, but nvcc seemed to have a problem with it.
This commit is contained in:
Kenneth Moreland 2020-01-29 12:11:47 -07:00
parent 188d1c5671
commit 9b876df96f

@ -33,7 +33,6 @@ struct ArrayHandleImplicitTraits
using StorageTag = vtkm::cont::StorageTagImplicit<ArrayPortalImplicit<FunctorType>>;
using Superclass = vtkm::cont::ArrayHandle<ValueType, StorageTag>;
using StorageType = vtkm::cont::internal::Storage<ValueType, StorageTag>;
using PortalType = typename StorageType::PortalType;
};
/// \brief An array portal that returns the result of a functor
@ -104,7 +103,7 @@ public:
VTKM_CONT
ArrayHandleImplicit(FunctorType functor, vtkm::Id length)
: Superclass(typename ArrayTraits::PortalType(functor, length))
: Superclass(typename ArrayTraits::StorageType::PortalType(functor, length))
{
}
};