[libcxx-commits] [PATCH] D99307: [libc++] Eliminate <compare>'s dependency on <array>

Arthur O'Dwyer via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 24 16:40:06 PDT 2021


Quuxplusone added inline comments.


================
Comment at: libcxx/include/compare:725
   using _CCC = _ClassifyCompCategory;
-  constexpr array<_CCC, sizeof...(_Ts)> __type_kinds{{__comp_detail::__type_to_enum<_Ts>()...}};
+  constexpr _CCC __type_kinds[sizeof...(_Ts)] = { __comp_detail::__type_to_enum<_Ts>()... };
   constexpr _CCC _Cat = sizeof...(_Ts) == 0 ? _StrongOrd
----------------
Happy to remove the `sizeof...(_Ts)` here if anyone cares; this was just a very mechanical transformation.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99307/new/

https://reviews.llvm.org/D99307



More information about the libcxx-commits mailing list