Commit 2b6e8c66 authored by Jan Koniarik's avatar Jan Koniarik
Browse files

fixed static vector iterators to use operator<=>

parent 818e8bc9
......@@ -208,8 +208,8 @@ class static_vector_iterator : public generic_iterator<static_vector_iterator<T,
return *this;
}
bool operator<(const static_vector_iterator &other) const {
return raw_ptr_ < other.raw_ptr_;
auto operator<=>(const static_vector_iterator &other) const {
return raw_ptr_ <=> other.raw_ptr_;
}
bool operator==(const static_vector_iterator &other) const {
return raw_ptr_ == other.raw_ptr_;
......@@ -245,8 +245,8 @@ class const_static_vector_iterator : public generic_iterator<const_static_vector
return *this;
}
bool operator<(const const_static_vector_iterator &other) const {
return raw_ptr_ < other.raw_ptr_;
auto operator<=>(const const_static_vector_iterator &other) const {
return raw_ptr_ <=> other.raw_ptr_;
}
bool operator==(const const_static_vector_iterator &other) const {
return raw_ptr_ == other.raw_ptr_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment