You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement change #4 of P1466: Change weekday to accept both 0 and 7 as Sunday. Add accessors 'c_encoding' and 'iso_encoding' to provide different interpretations of the weekday. Remove 'operator unsigned'
Copy file name to clipboardExpand all lines: libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/ctor.local_days.pass.cpp
Copy file name to clipboardExpand all lines: libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/plus_minus_equal.pass.cpp
+10-10
Original file line number
Diff line number
Diff line change
@@ -24,12 +24,12 @@ template <typename M, typename Ms>
24
24
constexprbooltestConstexpr()
25
25
{
26
26
M m1{1};
27
-
if (static_cast<unsigned>(m1 += Ms{ 1}) != 2) returnfalse;
28
-
if (static_cast<unsigned>(m1 += Ms{ 2}) != 4) returnfalse;
29
-
if (static_cast<unsigned>(m1 += Ms{ 4}) != 1) returnfalse;
30
-
if (static_cast<unsigned>(m1 -= Ms{ 1}) != 0) returnfalse;
31
-
if (static_cast<unsigned>(m1 -= Ms{ 2}) != 5) returnfalse;
32
-
if (static_cast<unsigned>(m1 -= Ms{ 4}) != 1) returnfalse;
27
+
if ((m1 += Ms{ 1}).c_encoding() != 2) returnfalse;
28
+
if ((m1 += Ms{ 2}).c_encoding() != 4) returnfalse;
29
+
if ((m1 += Ms{ 4}).c_encoding() != 1) returnfalse;
30
+
if ((m1 -= Ms{ 1}).c_encoding() != 0) returnfalse;
31
+
if ((m1 -= Ms{ 2}).c_encoding() != 5) returnfalse;
32
+
if ((m1 -= Ms{ 4}).c_encoding() != 1) returnfalse;
0 commit comments