From aa3b6f18f3e392e150e7589e25bf257401bfe8cf Mon Sep 17 00:00:00 2001 From: Victor Vazquez Date: Wed, 5 May 2021 15:01:01 -0700 Subject: [PATCH] Adding noexcpt to isCancelled (#2197) * Adding noexcpt to isCancelled * revert cl --- sdk/core/azure-core/inc/azure/core/context.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/core/azure-core/inc/azure/core/context.hpp b/sdk/core/azure-core/inc/azure/core/context.hpp index 96ea7f0ca..76d6d2b7c 100644 --- a/sdk/core/azure-core/inc/azure/core/context.hpp +++ b/sdk/core/azure-core/inc/azure/core/context.hpp @@ -200,7 +200,7 @@ namespace Azure { namespace Core { * @brief Check if the context is cancelled. * @return `true` if this context is cancelled, `false` otherwise. */ - bool IsCancelled() const { return GetDeadline() < std::chrono::system_clock::now(); } + bool IsCancelled() const noexcept { return GetDeadline() < std::chrono::system_clock::now(); } /** * @brief Throw an exception if the context was cancelled.