From b764a15c2389e5f46e3ab2e75481740ec42ba224 Mon Sep 17 00:00:00 2001 From: Stephan Hartmann Date: Thu, 29 Sep 2022 15:02:38 +0000 Subject: [PATCH] libstdc++: replace bit_set::operator!= in ityp_bitset C++20 removed the operator. Bug: chromium:957519 Change-Id: Iba9c3fcdf4d7d3c4286b5f5dac86304faa6a0c02 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/104201 Commit-Queue: Stephan Hartmann Reviewed-by: Corentin Wallez --- src/dawn/common/ityp_bitset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dawn/common/ityp_bitset.h b/src/dawn/common/ityp_bitset.h index 0be94a7e72..a5544e15d2 100644 --- a/src/dawn/common/ityp_bitset.h +++ b/src/dawn/common/ityp_bitset.h @@ -58,7 +58,7 @@ class bitset : private std::bitset { } bool operator!=(const bitset& other) const noexcept { - return Base::operator!=(static_cast(other)); + return !Base::operator==(static_cast(other)); } bitset& operator&=(const bitset& other) noexcept {