Skip to content

Commit

Permalink
Remove (#3657)
Browse files Browse the repository at this point in the history
oexcept specifier from Context::IsCancelled()

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
  • Loading branch information
antkmsft and antkmsft authored May 20, 2022
1 parent 80cf3d0 commit 593464c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions sdk/core/azure-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

### Breaking Changes

- Removed `noexcept` specification from `Azure::Core::Context::IsCancelled()`.

### Bugs Fixed

### Other Changes
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/azure-core/inc/azure/core/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 593464c

Please sign in to comment.