Skip to content
Unverified Commit b5c2fa14 authored by Samira Bazuzi's avatar Samira Bazuzi Committed by GitHub
Browse files

[libc] Mark operator== const to avoid ambiguity in C++20. (#68805)

C++20 will automatically generate an operator== with reversed operand
order, which is ambiguous with the written operator== when one argument
is marked const and the other isn't.

This operator currently triggers -Wambiguous-reversed-operator at usage
site libc/test/UnitTest/PrintfMatcher.cpp:28.
parent 1379a728
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment