kokkos / mdspan

Reference implementation of mdspan targeting C++23
Other
398 stars 65 forks source link

Fix missing restriction on ElementType #332

Closed pauleonix closed 3 months ago

pauleonix commented 3 months ago

Closes #330

It needs to be the same as AccessorPolicy::element_type.

I used plain std::is_same<T, U>::value because std::is_same_v<T, U> is a C++17 feature and the code should be compatible with C++14.

mhoemmen commented 3 months ago

@pauleonix Delightful! Thanks for the fix! and thanks @dalg24 for the review!