mirror of https://github.com/CGAL/cgal
Merge pull request #6118 from lrineau/Voronoi_diagram_2-fix_cpp20_warning-GF
Voronoi_diagram_2: fix C++20 warnings [-Wambiguous-reversed-operator]
This commit is contained in:
commit
f0ae53e9d0
|
|
@ -71,13 +71,13 @@ class Circulator_from_halfedge_adaptor
|
|||
typename Base::pointer operator->() { return &cur_; }
|
||||
typename Base::reference operator*() { return cur_; }
|
||||
|
||||
bool operator==(const Circulator& other) const {
|
||||
return cur_ == other.cur_;
|
||||
friend bool operator==(const Circulator& c, const Circulator& other) {
|
||||
return c.cur_ == other.cur_;
|
||||
|
||||
}
|
||||
|
||||
bool operator!=(const Circulator& other) const {
|
||||
return cur_ != other.cur_;
|
||||
friend bool operator!=(const Circulator& c, const Circulator& other) {
|
||||
return c.cur_ != other.cur_;
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
|
|||
|
|
@ -85,13 +85,13 @@ class Iterator_adaptor_base
|
|||
return tmp;
|
||||
}
|
||||
|
||||
bool operator==(const Iterator& other) const {
|
||||
bool operator==(const Self& other) const {
|
||||
if ( vda_ == nullptr ) { return other.vda_ == nullptr; }
|
||||
if ( other.vda_ == nullptr ) { return vda_ == nullptr; }
|
||||
return ( vda_ == other.vda_ && cur_ == other.cur_ );
|
||||
}
|
||||
|
||||
bool operator!=(const Iterator& other) const {
|
||||
bool operator!=(const Self& other) const {
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
|
|
@ -235,12 +235,12 @@ private:
|
|||
return *this;
|
||||
}
|
||||
|
||||
bool operator==(const Self& other) const {
|
||||
return Base::operator==(other) && is_first_ == other.is_first_;
|
||||
friend bool operator==(const Self& i, const Self& other) {
|
||||
return i.Base::operator==(other) && i.is_first_ == other.is_first_;
|
||||
}
|
||||
|
||||
bool operator!=(const Self& other) const {
|
||||
return !(*this == other);
|
||||
friend bool operator!=(const Self& i, const Self& other) {
|
||||
return !(i == other);
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Reference in New Issue