Skip to content

Commit

Permalink
Merge branch 'spacechip_numeric' of https://github.com/AnjuDel/STL in…
Browse files Browse the repository at this point in the history
…to spacechip_numeric
  • Loading branch information
AnjuDel committed Feb 10, 2021
2 parents 76648b1 + 41de4bb commit 7919ddc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion stl/inc/valarray
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ public:
}

#if _HAS_CXX20
_NODISCARD friend bool operator==(const slice& _Left, const slice& _Right) const noexcept /* strengthened */ {
_NODISCARD friend bool operator==(const slice& _Left, const slice& _Right) noexcept /* strengthened */ {
return _Left.start() == _Right.start() && _Left.size() == _Right.size() && _Left.stride() == _Right.stride();
}
#endif // !_HAS_CXX20
Expand Down
8 changes: 4 additions & 4 deletions tests/std/tests/P1614R2_spaceship/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,10 @@ void ordering_test_cases() {
std::slice a3 = std::slice(3, 3, 4);
std::slice a4 = std::slice(2, 4, 4);
std::slice a5 = std::slice(2, 3, 3);
static_assert(a1 == a2) == true);
static_assert(a1 == a3) == false);
static_assert(a1 == a4) == false);
static_assert(a1 == a5) == false);
static_assert((a1 == a2) == true);
static_assert((a1 == a3) == false);
static_assert((a1 == a4) == false);
static_assert((a1 == a5) == false);
}
{ // filesystem::space_info
constexpr std::filesystem::space_info si1{4'000'000'000'000, 2'000'000'000'000, 1'000'000'000'000};
Expand Down

0 comments on commit 7919ddc

Please sign in to comment.