Skip to content

Commit f99225a

Browse files
maflckoZingam
andauthored
Apply suggestions from code review
Co-authored-by: Hristo Hristov <[email protected]>
1 parent 07cb87c commit f99225a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

libcxx/include/__chrono/time_point.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ class time_point {
6363
++__d_;
6464
return *this;
6565
}
66-
_LIBCPP_HIDE_FROM_ABI constexpr time_point operator++(int) { return time_point(__d_++); }
66+
_LIBCPP_HIDE_FROM_ABI constexpr time_point operator++(int) { return time_point{__d_++}; }
6767
_LIBCPP_HIDE_FROM_ABI constexpr time_point& operator--() {
6868
--__d_;
6969
return *this;
7070
}
71-
_LIBCPP_HIDE_FROM_ABI constexpr time_point operator--(int) { return time_point(__d_--); }
71+
_LIBCPP_HIDE_FROM_ABI constexpr time_point operator--(int) { return time_point{__d_--}; }
7272
#endif // _LIBCPP_STD_VER >= 20
7373

7474
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX17 time_point& operator+=(const duration& __d) {

libcxx/test/std/time/time.point/time.point.arithmetic/op_++int.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ constexpr bool test() {
2929
}
3030

3131
int main(int, char**) {
32-
assert(test());
32+
test();
3333
static_assert(test());
3434
return 0;
3535
}

libcxx/test/std/time/time.point/time.point.arithmetic/op_--.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ constexpr bool test() {
2929
}
3030

3131
int main(int, char**) {
32-
assert(test());
32+
test();
3333
static_assert(test());
3434
return 0;
3535
}

libcxx/test/std/time/time.point/time.point.arithmetic/op_--int.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ constexpr bool test() {
2929
}
3030

3131
int main(int, char**) {
32-
assert(test());
32+
test();
3333
static_assert(test());
3434
return 0;
3535
}

0 commit comments

Comments
 (0)