-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
fixedSomething works now, yay!Something works now, yay!spaceshipC++20 operator <=>C++20 operator <=>testRelated to test codeRelated to test code
Description
#1655 added constexpr to vector spaceship:
Lines 1909 to 1911 in 5547f0f
| template <class _Ty, class _Alloc> | |
| _NODISCARD _CONSTEXPR20_CONTAINER _Synth_three_way_result<_Ty> operator<=>( | |
| const vector<_Ty, _Alloc>& _Left, const vector<_Ty, _Alloc>& _Right) { |
#1648 added vector::iterator spaceships with constexpr:
Line 156 in 5547f0f
| _NODISCARD _CONSTEXPR20_CONTAINER strong_ordering operator<=>(const _Vector_const_iterator& _Right) const noexcept { |
Line 2215 in 5547f0f
| _NODISCARD _CONSTEXPR20_CONTAINER strong_ordering operator<=>(const _Vb_const_iterator& _Right) const noexcept { |
When VS 2019 16.10 Preview 2 is available, we should test vector/vector<bool>'s container/iterator spaceships for constexpr (in tests/std/tests/P1614R2_spaceship/test.cpp).
Metadata
Metadata
Assignees
Labels
fixedSomething works now, yay!Something works now, yay!spaceshipC++20 operator <=>C++20 operator <=>testRelated to test codeRelated to test code