From 593464cedaf21b00d7b6fd1467f25ab9284ebe1b Mon Sep 17 00:00:00 2001 From: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> Date: Fri, 20 May 2022 11:48:14 -0700 Subject: [PATCH] Remove (#3657) oexcept specifier from Context::IsCancelled() Co-authored-by: Anton Kolesnyk --- sdk/core/azure-core/CHANGELOG.md | 2 ++ sdk/core/azure-core/inc/azure/core/context.hpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/core/azure-core/CHANGELOG.md b/sdk/core/azure-core/CHANGELOG.md index 17f328aba..ea1d9d9db 100644 --- a/sdk/core/azure-core/CHANGELOG.md +++ b/sdk/core/azure-core/CHANGELOG.md @@ -6,6 +6,8 @@ ### Breaking Changes +- Removed `noexcept` specification from `Azure::Core::Context::IsCancelled()`. + ### Bugs Fixed ### Other Changes diff --git a/sdk/core/azure-core/inc/azure/core/context.hpp b/sdk/core/azure-core/inc/azure/core/context.hpp index 2e72f85d4..a4ae92e63 100644 --- a/sdk/core/azure-core/inc/azure/core/context.hpp +++ b/sdk/core/azure-core/inc/azure/core/context.hpp @@ -233,7 +233,7 @@ namespace Azure { namespace Core { * @brief Checks if the context is cancelled. * @return `true` if this context is cancelled; otherwise, `false`. */ - bool IsCancelled() const noexcept { return GetDeadline() < std::chrono::system_clock::now(); } + bool IsCancelled() const { return GetDeadline() < std::chrono::system_clock::now(); } /** * @brief Checks if the context is cancelled.