Conversation
| }; | ||
|
|
||
| template <typename T, size_t N> | ||
| struct tuple_size<array<T, N>> : ::camp::num<N> { |
There was a problem hiding this comment.
There's already a tuple_size entity in array.hpp. Does that one not work?
There was a problem hiding this comment.
That one does not work for me because it's defined within the std namespace. camp::apply looks for camp::tuple_size, so we need to define one that specializes for camp::array.
There was a problem hiding this comment.
Can you move this one to array.hpp, then?
|
I'm actually wondering if we should remove camp::array since we should be able to use std::array in device code now that we require c++17 (almost everything in std::array is constexpr in c++17, and everything is constexpr in c++20). With nvcc you have to supply the |
I would be fine with this. It doesn't look like it's used in RAJA, other than in my SubView PR. |
|
See #195 |
Add tuple_size to camp::array. This is needed in order to use camp::apply on arrays.