Skip to content

Commit

Permalink
Update ranges_views.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lackhole committed Jun 22, 2024
1 parent dee3721 commit e969c4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/ranges_views.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<preview::string_view, 4>{"Curiously"_sv, "Recurring"_sv, "Template"_sv, "Pattern"_sv};
constexpr auto v = ranges::cartesian_product_view<
Expand Down

0 comments on commit e969c4e

Please sign in to comment.