kokkos / mdspan

Reference implementation of mdspan targeting C++23
Other
413 stars 69 forks source link

Fix missing restriction on ElementType #332

Closed pauleonix closed 6 months ago

pauleonix commented 6 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 6 months ago

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