Commit 325f26290eef9b001df4b750f33698d2a81a47f0

Behdad Esfahbod 2021-11-19T17:19:09

[array] Fix a couple constexpr warnings ./subprojects/harfbuzz/src/hb-array.hh:71:25: warning: 'constexpr' non-static member function will not be implicitly 'const' in C++14; add 'const' to avoid a change in behavior [-Wconstexpr-not-const] constexpr hb_array_t& operator = (const hb_array_t<U> &o) ^ const ../subprojects/harfbuzz/src/hb-array.hh:72:5: warning: use of this statement in a constexpr function is a C++14 extension [-Wc++14-extensions] { arrayZ = o.arrayZ; length = o.length; backwards_length = o.backwards_length; return *this; } ^ ../subprojects/harfbuzz/src/hb-array.hh:329:32: warning: 'constexpr' non-static member function will not be implicitly 'const' in C++14; add 'const' to avoid a change in behavior [-Wconstexpr-not-const] constexpr hb_sorted_array_t& operator = (const hb_array_t<U> &o) ^ const ../subprojects/harfbuzz/src/hb-array.hh:330:5: warning: use of this statement in a constexpr function is a C++14 extension [-Wc++14-extensions] { hb_array_t<Type> (*this) = o; return *this; } ^ 4 warnings generated.