From b6a95e7ae7030ce9212baf99a58f49b1a8919230 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sat, 7 Apr 2018 01:28:54 +0000 Subject: [PATCH] Work around missing braces in init warning git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@329474 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/compare | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/compare b/include/compare index 2aa4d8641..fd4d7f511 100644 --- a/include/compare +++ b/include/compare @@ -635,7 +635,7 @@ __compute_comp_type(std::array<_ClassifyCompCategory, _Size> __types) { template constexpr auto __get_comp_type() { 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 : __compute_comp_type(__type_kinds); if constexpr (_Cat == _None)