From 5a53cb38a399b5ba38fdb33c7fa957e98828cdfb Mon Sep 17 00:00:00 2001 From: Paul Thompson Date: Thu, 20 Jul 2017 22:01:56 -0700 Subject: [PATCH] VS2013 doesn't accept exception specification for constructor default. Resolves #183 --- date.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/date.h b/date.h index 21cd385..47b7e83 100644 --- a/date.h +++ b/date.h @@ -3713,7 +3713,11 @@ class time_of_day_storage, detail::classify:: public: using precision = std::chrono::hours; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 CONSTCD11 time_of_day_storage() NOEXCEPT = default; +#else + CONSTCD11 time_of_day_storage() = default; +#endif /* !defined(_MSC_VER) || _MSC_VER >= 1900 */ CONSTCD11 explicit time_of_day_storage(std::chrono::hours since_midnight) NOEXCEPT : base(since_midnight, since_midnight < std::chrono::hours{0}, is24hr) @@ -4081,7 +4085,11 @@ class time_of_day { using base = detail::time_of_day_storage; public: +#if !defined(_MSC_VER) || _MSC_VER >= 1900 CONSTCD11 time_of_day() NOEXCEPT = default; +#else + CONSTCD11 time_of_day() = default; +#endif /* !defined(_MSC_VER) || _MSC_VER >= 1900 */ CONSTCD11 explicit time_of_day(Duration since_midnight) NOEXCEPT : base(since_midnight)