diff options
author | Chris Robinson <[email protected]> | 2023-10-19 10:13:38 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-10-19 10:13:38 -0700 |
commit | b3e83d830e8fb0cc85fa6c53eb820b754fae41c7 (patch) | |
tree | 41586b4ae132e87961c1fd4c3afd80b364938e58 | |
parent | 63ad14119d74aa61ed7210d27098bdb41313efec (diff) |
Use a more appropriate type trait to remove a pointer
-rw-r--r-- | common/alspan.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/alspan.h b/common/alspan.h index d5e42324..341ce7c8 100644 --- a/common/alspan.h +++ b/common/alspan.h @@ -314,7 +314,7 @@ template<typename T, std::size_t N> span(const std::array<T, N>&) -> span<const T, N>; template<typename C, REQUIRES(detail_::is_valid_container_type<C>)> -span(C&&) -> span<std::remove_reference_t<decltype(*std::data(std::declval<C&>()))>>; +span(C&&) -> span<std::remove_pointer_t<decltype(std::data(std::declval<C&>()))>>; #undef REQUIRES |