Remove noexcept specification from Azure::DateTime::clock::now() (#4198)

* Remove noexcept specification from Azure::DateTime::clock::now()

* Undo unnecessary change (my local clang-format is broken)

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

View File

@ -8,6 +8,8 @@
### Breaking Changes
- Removed `noexcept` specification from `Azure::DateTime::clock::now()`.
### Bugs Fixed
### Other Changes

View File

@ -39,7 +39,7 @@ namespace _detail {
// this clock's time_point), and add that duration to steady clock's time_point to get a new
// time_point in the steady clock's "coordinate system".
static constexpr bool is_steady = std::chrono::system_clock::is_steady;
static time_point now() noexcept;
static time_point now();
};
} // namespace _detail
@ -202,7 +202,7 @@ public:
std::string ToString(DateFormat format, TimeFractionFormat fractionFormat) const;
};
inline _detail::Clock::time_point _detail::Clock::now() noexcept
inline _detail::Clock::time_point _detail::Clock::now()
{
return DateTime(std::chrono::system_clock::now());
}