Commit 55d461a0 authored by Chao Liu's avatar Chao Liu
Browse files

refactoring Array

parent c9511733
...@@ -15,7 +15,7 @@ __host__ __device__ constexpr auto make_multi_index(const Xs&... xs) ...@@ -15,7 +15,7 @@ __host__ __device__ constexpr auto make_multi_index(const Xs&... xs)
{ {
return make_array<const index_t>(std::forward<const Xs>(xs)...); return make_array<const index_t>(std::forward<const Xs>(xs)...);
} }
#else #else // doesn't work: don't know how to get the lvalue/rvalue reference correct
template <typename... Xs> template <typename... Xs>
__host__ __device__ constexpr auto make_multi_index(Xs&&... xs) __host__ __device__ constexpr auto make_multi_index(Xs&&... xs)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment