Skip to content

Commit 40e4a00

Browse files
authored
Merge 2018-11 LWG Motion 9
P0972R0 <chrono> zero(), min(), and max() should be noexcept Fixes #2415
2 parents 1b4266f + 932222d commit 40e4a00

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

source/time.tex

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,9 +1133,9 @@
11331133
template<class Rep>
11341134
struct duration_values {
11351135
public:
1136-
static constexpr Rep zero();
1137-
static constexpr Rep min();
1138-
static constexpr Rep max();
1136+
static constexpr Rep zero() noexcept;
1137+
static constexpr Rep min() noexcept;
1138+
static constexpr Rep max() noexcept;
11391139
};
11401140
\end{itemdecl}
11411141

@@ -1149,7 +1149,7 @@
11491149

11501150
\indexlibrarymember{zero}{duration_values}%
11511151
\begin{itemdecl}
1152-
static constexpr Rep zero();
1152+
static constexpr Rep zero() noexcept;
11531153
\end{itemdecl}
11541154

11551155
\begin{itemdescr}
@@ -1164,7 +1164,7 @@
11641164

11651165
\indexlibrarymember{min}{duration_values}%
11661166
\begin{itemdecl}
1167-
static constexpr Rep min();
1167+
static constexpr Rep min() noexcept;
11681168
\end{itemdecl}
11691169

11701170
\begin{itemdescr}
@@ -1177,7 +1177,7 @@
11771177

11781178
\indexlibrarymember{max}{duration_values}%
11791179
\begin{itemdecl}
1180-
static constexpr Rep max();
1180+
static constexpr Rep max() noexcept;
11811181
\end{itemdecl}
11821182

11831183
\begin{itemdescr}
@@ -1314,9 +1314,9 @@
13141314
constexpr duration& operator%=(const duration& rhs);
13151315

13161316
// \ref{time.duration.special}, special values
1317-
static constexpr duration zero();
1318-
static constexpr duration min();
1319-
static constexpr duration max();
1317+
static constexpr duration zero() noexcept;
1318+
static constexpr duration min() noexcept;
1319+
static constexpr duration max() noexcept;
13201320
};
13211321
}
13221322
\end{codeblock}
@@ -1573,7 +1573,7 @@
15731573

15741574
\indexlibrarymember{zero}{duration}%
15751575
\begin{itemdecl}
1576-
static constexpr duration zero();
1576+
static constexpr duration zero() noexcept;
15771577
\end{itemdecl}
15781578

15791579
\begin{itemdescr}
@@ -1583,7 +1583,7 @@
15831583

15841584
\indexlibrarymember{min}{duration}%
15851585
\begin{itemdecl}
1586-
static constexpr duration min();
1586+
static constexpr duration min() noexcept;
15871587
\end{itemdecl}
15881588

15891589
\begin{itemdescr}
@@ -1593,7 +1593,7 @@
15931593

15941594
\indexlibrarymember{max}{duration}%
15951595
\begin{itemdecl}
1596-
static constexpr duration max();
1596+
static constexpr duration max() noexcept;
15971597
\end{itemdecl}
15981598

15991599
\begin{itemdescr}
@@ -2186,8 +2186,8 @@
21862186
constexpr time_point& operator-=(const duration& d);
21872187

21882188
// \ref{time.point.special}, special values
2189-
static constexpr time_point min();
2190-
static constexpr time_point max();
2189+
static constexpr time_point min() noexcept;
2190+
static constexpr time_point max() noexcept;
21912191
};
21922192
}
21932193
\end{codeblock}
@@ -2333,7 +2333,7 @@
23332333

23342334
\indexlibrarymember{min}{time_point}%
23352335
\begin{itemdecl}
2336-
static constexpr time_point min();
2336+
static constexpr time_point min() noexcept;
23372337
\end{itemdecl}
23382338

23392339
\begin{itemdescr}
@@ -2343,7 +2343,7 @@
23432343

23442344
\indexlibrarymember{max}{time_point}%
23452345
\begin{itemdecl}
2346-
static constexpr time_point max();
2346+
static constexpr time_point max() noexcept;
23472347
\end{itemdecl}
23482348

23492349
\begin{itemdescr}

0 commit comments

Comments
 (0)