[libcxx-commits] [libcxx] [libc++] Fix constexpr initialization of std::array<T, 0> (PR #74667)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Dec 13 18:38:18 PST 2023
================
@@ -280,10 +280,11 @@ struct _LIBCPP_TEMPLATE_VIS array<_Tp, 0>
typedef std::reverse_iterator<iterator> reverse_iterator;
typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
- typedef __conditional_t<is_const<_Tp>::value, const char, char> _CharType;
+ struct _EmptyAggregate { };
----------------
philnik777 wrote:
We have `__empty` and I don't think we have to have this be specific to the instantiation, so maybe we want to use that instead?
https://github.com/llvm/llvm-project/pull/74667
More information about the libcxx-commits
mailing list