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:
parent
a70be339e7
commit
3e4a41bd4a
@ -8,6 +8,8 @@
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
- Removed `noexcept` specification from `Azure::DateTime::clock::now()`.
|
||||
|
||||
### Bugs Fixed
|
||||
|
||||
### Other Changes
|
||||
|
||||
@ -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());
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user