Commit 80e55f6b authored by Max Kellermann's avatar Max Kellermann

time/Convert: add `noexcept`

parent e7411c0c
......@@ -69,7 +69,7 @@ LocalTime(std::chrono::system_clock::time_point tp)
#ifdef __GLIBC__
std::chrono::system_clock::time_point
TimeGm(struct tm &tm)
TimeGm(struct tm &tm) noexcept
{
return std::chrono::system_clock::from_time_t(timegm(&tm));
}
......@@ -77,7 +77,7 @@ TimeGm(struct tm &tm)
#endif
std::chrono::system_clock::time_point
MakeTime(struct tm &tm)
MakeTime(struct tm &tm) noexcept
{
return std::chrono::system_clock::from_time_t(mktime(&tm));
}
......@@ -56,7 +56,7 @@ LocalTime(std::chrono::system_clock::time_point tp);
*/
gcc_pure
std::chrono::system_clock::time_point
TimeGm(struct tm &tm);
TimeGm(struct tm &tm) noexcept;
#endif
......@@ -65,6 +65,6 @@ TimeGm(struct tm &tm);
*/
gcc_pure
std::chrono::system_clock::time_point
MakeTime(struct tm &tm);
MakeTime(struct tm &tm) noexcept;
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment