Hello,
I updated JUCE to 8.0.7 and it generates a warning due to “-Wambiguous-reversed-operator” with C++20.
JUCE/modules/juce_gui_basics/juce_gui_basics.cpp:279:
/home/runner/work/Partiels/Partiels/JUCE/modules/juce_gui_basics/components/juce_Component.cpp:2297:20: warning: ISO C++20 considers use of overloaded operator '==' (with operand types 'SafePointer<juce::Component>' and 'const SafePointer<juce::Component>') to be ambiguous despite there being a unique best viable function [-Wambiguous-reversed-operator]
if (target == originalTarget)
~~~~~~ ^ ~~~~~~~~~~~~~~
/home/runner/work/Partiels/Partiels/JUCE/modules/juce_gui_basics/components/juce_Component.h:2417:14: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
bool operator== (ComponentType* component) const noexcept { return weakRef == component; }
^
1 warning generated.
By the way, it seems to me that target == originalTarget should always be true. Am I missing something?
