Add missing != operator, fixing compilation issue with Visual Studio 17.6 together with /std:c++latest (#17860)

This commit is contained in:
Marcus van Houdt 2023-06-02 20:05:57 +02:00 committed by GitHub
parent b430802d0c
commit c3a54b0a6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,6 +164,15 @@ public:
areSameStrings(precisionInfo.name, p.precisionInfo.name);
}
/**
* @brief Inequality operator with Precision object
* @param p A value of Precision to compare with
* @return `true` if values represent different precisions, `false` otherwise
*/
bool operator!=(const Precision& p) const noexcept {
return !(*this == p);
}
/**
* @brief Equality operator with ePrecision enum value
* @param p A value of ePrecision to compare with