From c0056480495627ad73f3814c70c433a5729013f3 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sat, 28 May 2016 14:10:30 -0400 Subject: [PATCH] Fix type-o's --- date.html | 27 +++++++++++++++++++++------ tz.html | 4 ++-- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/date.html b/date.html index 7df4aa4..49ba833 100644 --- a/date.html +++ b/date.html @@ -1741,7 +1741,7 @@ resolution of seconds. sys_seconds is also widely kno as Unix Time.

-using sys_days = sys_time<std::chrono::seconds>;
+using sys_seconds = sys_time<std::chrono::seconds>;
 
@@ -1769,7 +1769,7 @@ seconds), because they mean two subtly different things, and are both struct local_t {}; template <class Duration> - using sys_time = std::chrono::time_point<local_t, Duration>; + using local_time = std::chrono::time_point<local_t, Duration>; @@ -1809,7 +1809,14 @@ There exists a constexpr instance of last_spec named a month, or the last weekday of a month.

-constexpr struct last_spec {} last{};
+struct last_spec
+{
+    explicit last_spec() = default;
+};
+inline namespace literals
+{
+constexpr last_spec last{};
+}
 
@@ -1849,8 +1856,11 @@ constexpr day operator+(const days& x, const day& y) noexcept; constexpr day operator-(const day& x, const days& y) noexcept; constexpr days operator-(const day& x, const day& y) noexcept; -constexpr day operator "" _d(unsigned long long d) noexcept; std::ostream& operator<<(std::ostream& os, const day& d); + +inline namespace literals { +constexpr day operator "" _d(unsigned long long d) noexcept; +}

Overview

@@ -2149,6 +2159,7 @@ constexpr months operator-(const month& x, const month& y) noexcept; std::ostream& operator<<(std::ostream& os, const month& m); +inline namespace literals { constexpr month jan{1}; constexpr month feb{2}; constexpr month mar{3}; @@ -2161,6 +2172,7 @@ constexpr month sep{9}; constexpr month oct{10}; constexpr month nov{11}; constexpr month dec{12}; +}

Overview

@@ -2479,8 +2491,10 @@ constexpr year operator+(const years& x, const year& y) noexcept; constexpr year operator-(const year& x, const years& y) noexcept; constexpr years operator-(const year& x, const year& y) noexcept; -constexpr year operator "" _y(unsigned long long y) noexcept; std::ostream& operator<<(std::ostream& os, const year& y); +inline namespace literals { +constexpr year operator "" _y(unsigned long long y) noexcept; +}

Overview

@@ -2811,6 +2825,7 @@ constexpr days operator-(const weekday& x, const weekday& y) noexcept std::ostream& operator<<(std::ostream& os, const weekday& wd); +inline namespace literals { constexpr weekday sun{0}; constexpr weekday mon{1}; constexpr weekday tue{2}; @@ -2818,6 +2833,7 @@ constexpr weekday wed{3}; constexpr weekday thu{4}; constexpr weekday fri{5}; constexpr weekday sat{6}; +}

Overview

@@ -6982,7 +6998,6 @@ make_time(std::chrono::hours h, std::chrono::minutes m, std::chrono::seconds s,
 template <class Duration>
-inline
 std::ostream&
 operator<<(std::ostream& os,
            const std::chrono::time_point<std::chrono::system_clock, Duration>& tp);
diff --git a/tz.html b/tz.html
index 165b6e1..8875a12 100644
--- a/tz.html
+++ b/tz.html
@@ -1831,9 +1831,9 @@ operator!=(const zoned_time<Duration1>& x, const zoned_time<Duratio
 
 
 
-template 
+template <class Duration>
 std::ostream&
-operator<<(std::ostream& os, const zoned_time& t)
+operator<<(std::ostream& os, const zoned_time<Duration>& t)