diff --git a/include/date/tz.h b/include/date/tz.h index 89cf29b..10f3782 100644 --- a/include/date/tz.h +++ b/include/date/tz.h @@ -343,13 +343,13 @@ private: sys_time tp_; public: -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template ::default_zone())> #endif zoned_time(); -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template ::default_zone())> #endif @@ -357,7 +357,6 @@ public: explicit zoned_time(TimeZonePtr z); #if HAS_STRING_VIEW -# if !defined(_MSC_VER) || (_MSC_VER > 1915) template ::locate_zone(std::string_view())) >::value >::type> -# endif explicit zoned_time(std::string_view name); #else -# if !defined(_MSC_VER) || (_MSC_VER > 1915) +# if !defined(_MSC_VER) || (_MSC_VER > 1900) template & st); -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template & tp); -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template & st); -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template & st); -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template & tp); -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template & tp); -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template & tp, choose c); -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template & tp, choose c); -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template & zt); -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template & zt); -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template & zt, choose); -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template #endif inline @@ -1360,7 +1358,7 @@ zoned_time::zoned_time() {} template -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template #endif inline @@ -1378,9 +1376,7 @@ zoned_time::zoned_time(TimeZonePtr z) #if HAS_STRING_VIEW template -# if !defined(_MSC_VER) || (_MSC_VER > 1915) -template -# endif +template inline zoned_time::zoned_time(std::string_view name) : zoned_time(zoned_traits::locate_zone(name)) @@ -1389,9 +1385,9 @@ zoned_time::zoned_time(std::string_view name) #else // !HAS_STRING_VIEW template -# if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template -# endif +#endif inline zoned_time::zoned_time(const std::string& name) : zoned_time(zoned_traits::locate_zone(name)) @@ -1415,7 +1411,7 @@ zoned_time::zoned_time(TimeZonePtr z, const sys_time -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template #endif inline @@ -1425,7 +1421,7 @@ zoned_time::zoned_time(TimeZonePtr z, const local_time -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template #endif inline @@ -1455,7 +1451,7 @@ zoned_time::zoned_time(TimeZonePtr z, #if HAS_STRING_VIEW template -template +template inline zoned_time::zoned_time(std::string_view name, const sys_time& st) @@ -1463,7 +1459,7 @@ zoned_time::zoned_time(std::string_view name, {} template -template +template inline zoned_time::zoned_time(std::string_view name, const local_time& t) @@ -1471,7 +1467,7 @@ zoned_time::zoned_time(std::string_view name, {} template -template +template inline zoned_time::zoned_time(std::string_view name, const local_time& t, choose c) @@ -1498,7 +1494,7 @@ zoned_time::zoned_time(std::string_view name, #else // !HAS_STRING_VIEW template -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template #endif inline @@ -1508,7 +1504,7 @@ zoned_time::zoned_time(const std::string& name, {} template -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template #endif inline @@ -1518,7 +1514,7 @@ zoned_time::zoned_time(const char* name, {} template -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template #endif inline @@ -1528,7 +1524,7 @@ zoned_time::zoned_time(const std::string& name, {} template -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template #endif inline @@ -1538,7 +1534,7 @@ zoned_time::zoned_time(const char* name, {} template -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template #endif inline @@ -1548,7 +1544,7 @@ zoned_time::zoned_time(const std::string& name, {} template -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template #endif inline @@ -1558,7 +1554,7 @@ zoned_time::zoned_time(const char* name, {} template -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template #else template @@ -1570,7 +1566,7 @@ zoned_time::zoned_time(const std::string& name, {} template -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template #else template @@ -1582,7 +1578,7 @@ zoned_time::zoned_time(const char* name, {} template -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template #else template @@ -1595,7 +1591,7 @@ zoned_time::zoned_time(const std::string& name, {} template -#if !defined(_MSC_VER) || (_MSC_VER > 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) template #else template @@ -1691,7 +1687,7 @@ make_zoned(const sys_time& tp) } template 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) , class = typename std::enable_if < std::is_class @@ -1719,7 +1715,7 @@ make_zoned(const std::string& name) } template 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) , class = typename std::enable_if < std::is_class())>::type>{} @@ -1735,7 +1731,7 @@ make_zoned(TimeZonePtr zone, const local_time& tp) } template 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) , class = typename std::enable_if < std::is_class())>::type>{} @@ -1801,7 +1797,7 @@ make_zoned(const std::string& name, const zoned_time& zt, } template 1915) +#if !defined(_MSC_VER) || (_MSC_VER > 1900) , class = typename std::enable_if < std::is_class())>::type>{}