C++: use default operator==

Since we now use C++20, we can simplify our code a bit
This commit is contained in:
Olivier Goffart 2022-01-24 15:46:39 +01:00 committed by Olivier Goffart
parent 36e07b8801
commit 319704d3fb
8 changed files with 13 additions and 75 deletions

View file

@ -400,12 +400,6 @@ public:
{
return cbindgen_private::sixtyfps_interpreter_value_eq(&a.inner, &b.inner);
}
/// Returns true if \a and \b hold values of the same type and the underlying vales are not
/// equal.
friend bool operator!=(const Value &a, const Value &b)
{
return !cbindgen_private::sixtyfps_interpreter_value_eq(&a.inner, &b.inner);
}
private:
inline Value(const void *) = delete; // Avoid that for example Value("foo") turns to Value(bool)