From 501609bacf3a2f1fa5643e21eac78cb9dafa3d8f Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Wed, 12 Oct 2016 19:48:45 -0400 Subject: [PATCH] Make those time_point conversions which can be noexcept, noexcept --- tz.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tz.h b/tz.h index a83c6f3..ccb639f 100644 --- a/tz.h +++ b/tz.h @@ -1117,7 +1117,7 @@ using tai_seconds = tai_time; template inline utc_time::type> -to_utc_time(tai_time t) +to_utc_time(tai_time t) NOEXCEPT { using namespace std::chrono; using duration = typename std::common_type::type; @@ -1128,7 +1128,7 @@ to_utc_time(tai_time t) template inline tai_time::type> -to_tai_time(utc_time t) +to_tai_time(utc_time t) NOEXCEPT { using namespace std::chrono; using duration = typename std::common_type::type; @@ -1185,7 +1185,7 @@ using gps_seconds = gps_time; template inline utc_time::type> -to_utc_time(gps_time t) +to_utc_time(gps_time t) NOEXCEPT { using namespace std::chrono; using duration = typename std::common_type::type; @@ -1250,7 +1250,7 @@ to_sys_time(gps_time t) template inline tai_time::type> -to_tai_time(gps_time t) +to_tai_time(gps_time t) NOEXCEPT { using namespace std::chrono; using duration = typename std::common_type::type; @@ -1261,7 +1261,7 @@ to_tai_time(gps_time t) template inline gps_time::type> -to_gps_time(tai_time t) +to_gps_time(tai_time t) NOEXCEPT { using namespace std::chrono; using duration = typename std::common_type::type;