Skip to content

P0972R0 <chrono> zero(), min(), and max() should be noexcept #2456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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