Skip to content

Commit

Permalink
Merge 2018-11 LWG Motion 9
Browse files Browse the repository at this point in the history
P0972R0 <chrono> zero(), min(), and max() should be noexcept

Fixes #2415
  • Loading branch information
zygoloid committed Nov 26, 2018
2 parents 1b4266f + 932222d commit 40e4a00
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions source/time.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1133,9 +1133,9 @@
template<class Rep>
struct duration_values {
public:
static constexpr Rep zero();
static constexpr Rep min();
static constexpr Rep max();
static constexpr Rep zero() noexcept;
static constexpr Rep min() noexcept;
static constexpr Rep max() noexcept;
};
\end{itemdecl}

Expand All @@ -1149,7 +1149,7 @@

\indexlibrarymember{zero}{duration_values}%
\begin{itemdecl}
static constexpr Rep zero();
static constexpr Rep zero() noexcept;
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -1164,7 +1164,7 @@

\indexlibrarymember{min}{duration_values}%
\begin{itemdecl}
static constexpr Rep min();
static constexpr Rep min() noexcept;
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -1177,7 +1177,7 @@

\indexlibrarymember{max}{duration_values}%
\begin{itemdecl}
static constexpr Rep max();
static constexpr Rep max() noexcept;
\end{itemdecl}

\begin{itemdescr}
Expand Down Expand Up @@ -1314,9 +1314,9 @@
constexpr duration& operator%=(const duration& rhs);

// \ref{time.duration.special}, special values
static constexpr duration zero();
static constexpr duration min();
static constexpr duration max();
static constexpr duration zero() noexcept;
static constexpr duration min() noexcept;
static constexpr duration max() noexcept;
};
}
\end{codeblock}
Expand Down Expand Up @@ -1573,7 +1573,7 @@

\indexlibrarymember{zero}{duration}%
\begin{itemdecl}
static constexpr duration zero();
static constexpr duration zero() noexcept;
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -1583,7 +1583,7 @@

\indexlibrarymember{min}{duration}%
\begin{itemdecl}
static constexpr duration min();
static constexpr duration min() noexcept;
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -1593,7 +1593,7 @@

\indexlibrarymember{max}{duration}%
\begin{itemdecl}
static constexpr duration max();
static constexpr duration max() noexcept;
\end{itemdecl}

\begin{itemdescr}
Expand Down Expand Up @@ -2186,8 +2186,8 @@
constexpr time_point& operator-=(const duration& d);

// \ref{time.point.special}, special values
static constexpr time_point min();
static constexpr time_point max();
static constexpr time_point min() noexcept;
static constexpr time_point max() noexcept;
};
}
\end{codeblock}
Expand Down Expand Up @@ -2333,7 +2333,7 @@

\indexlibrarymember{min}{time_point}%
\begin{itemdecl}
static constexpr time_point min();
static constexpr time_point min() noexcept;
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -2343,7 +2343,7 @@

\indexlibrarymember{max}{time_point}%
\begin{itemdecl}
static constexpr time_point max();
static constexpr time_point max() noexcept;
\end{itemdecl}

\begin{itemdescr}
Expand Down

0 comments on commit 40e4a00

Please sign in to comment.