mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-23 01:18:52 +08:00
Work around missing braces in init warning
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@329474 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -635,7 +635,7 @@ __compute_comp_type(std::array<_ClassifyCompCategory, _Size> __types) {
|
|||||||
template <class ..._Ts>
|
template <class ..._Ts>
|
||||||
constexpr auto __get_comp_type() {
|
constexpr auto __get_comp_type() {
|
||||||
using _CCC = _ClassifyCompCategory;
|
using _CCC = _ClassifyCompCategory;
|
||||||
constexpr array<_CCC, sizeof...(_Ts)> __type_kinds{__comp_detail::__type_to_enum<_Ts>()...};
|
constexpr array<_CCC, sizeof...(_Ts)> __type_kinds{{__comp_detail::__type_to_enum<_Ts>()...}};
|
||||||
constexpr _CCC _Cat = sizeof...(_Ts) == 0 ? _StrongOrd
|
constexpr _CCC _Cat = sizeof...(_Ts) == 0 ? _StrongOrd
|
||||||
: __compute_comp_type(__type_kinds);
|
: __compute_comp_type(__type_kinds);
|
||||||
if constexpr (_Cat == _None)
|
if constexpr (_Cat == _None)
|
||||||
|
Reference in New Issue
Block a user