From fd3b9a6180da565026d5a52b8c5e1fe41f2e5644 Mon Sep 17 00:00:00 2001 From: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> Date: Tue, 3 Jan 2023 11:17:09 -0800 Subject: [PATCH] More accurate argument type for the ExtendableEnumeration == and != (#4199) Co-authored-by: Anton Kolesnyk --- .../inc/azure/core/internal/extendable_enumeration.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sdk/core/azure-core/inc/azure/core/internal/extendable_enumeration.hpp b/sdk/core/azure-core/inc/azure/core/internal/extendable_enumeration.hpp index c84c71e78..1329f6f34 100644 --- a/sdk/core/azure-core/inc/azure/core/internal/extendable_enumeration.hpp +++ b/sdk/core/azure-core/inc/azure/core/internal/extendable_enumeration.hpp @@ -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 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 const& other) const noexcept + { + return !operator==(other); + } /** * @brief Return the ExtendableEnumeration string representation.