Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38568b1d authored by Yabin Cui's avatar Yabin Cui
Browse files

Remove static_assert that fails after clang update

Because it is reasonable for nonconstexpr to pass
is_const_char_array_v<nonconstexpr>.

Bug: 346601091
Test: build with clang update
Change-Id: Id4fceb2e1198a5ec465c5e8c6e871fd19cdea29c
parent 9e5ba59e
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -37,14 +37,12 @@ TEST(StaticStringViewTests, CreateTicket) {
    // const std::array<char,2> nonstatic = {'a', 'b'};
    // static_assert(can_assign<nonstatic>::value == false);
    static std::array<char, 2> nonconst = {'a', 'b'};
    static const std::array<char, 2> nonconstexpr = {'a', 'b'};
    static constexpr std::array<int, 2> nonchar = {1, 2};
    static constexpr size_t nonarray = 2;

    static_assert(CanCreate<nonconst>::value == false);
    static_assert(CanCreate<nonarray>::value == false);
    static_assert(CanCreate<nonchar>::value == false);
    static_assert(CanCreate<nonconstexpr>::value == false);

    static constexpr std::array<char, 2> scoped = {'a', 'b'};
    constexpr StaticStringView Ticket1 = StaticStringView::create<global>();