From e969c4eec80c04d3cff97872642bbbf4eb1d45ea Mon Sep 17 00:00:00 2001 From: Yong Gyu Lee Date: Sun, 23 Jun 2024 02:29:28 +0900 Subject: [PATCH] Update ranges_views.cc --- test/ranges_views.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/ranges_views.cc b/test/ranges_views.cc index 7d66b24..8470ac5 100644 --- a/test/ranges_views.cc +++ b/test/ranges_views.cc @@ -153,9 +153,8 @@ TEST(VERSIONED(RangesViews), cartesian_product_view) { { #if PREVIEW_CXX_VERSION >= 17 - constexpr auto a = std::array{"Curiously"_sv, "Recurring"_sv, "Template"_sv, "Pattern"_sv}; - constexpr auto v = ranges::cartesian_product_view(a[0], a[1], a[2], a[3]); - + static constexpr auto a = std::array{"Curiously"_sv, "Recurring"_sv, "Template"_sv, "Pattern"_sv}; + static constexpr auto v = ranges::cartesian_product_view(a[0], a[1], a[2], a[3]); #else constexpr auto a = std::array{"Curiously"_sv, "Recurring"_sv, "Template"_sv, "Pattern"_sv}; constexpr auto v = ranges::cartesian_product_view<