More accurate argument type for the ExtendableEnumeration == and != (#4199)

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
Anton Kolesnyk 2023-01-03 11:17:09 -08:00 committed by GitHub
parent 3e4a41bd4a
commit fd3b9a6180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ namespace Azure { namespace Core { namespace _internal {
*
* @param other Another extendable enumeration to be compared.
*/
bool operator==(T const& other) const noexcept
bool operator==(ExtendableEnumeration<T> const& other) const noexcept
{
return m_enumerationValue == other.m_enumerationValue;
}
@ -73,7 +73,10 @@ namespace Azure { namespace Core { namespace _internal {
*
* @param other Another extendable enumeration to be compared.
*/
bool operator!=(T const& other) const noexcept { return !operator==(other); }
bool operator!=(ExtendableEnumeration<T> const& other) const noexcept
{
return !operator==(other);
}
/**
* @brief Return the ExtendableEnumeration string representation.