mirror of
https://github.com/boostorg/fiber.git
synced 2026-07-21 13:13:32 +00:00
Add missing const on comparison operators
This is detected as an error in C++20 (spaceship) in clang 14, since the operators become ambiguous against reversed candidates.
This commit is contained in:
@@ -68,11 +68,11 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
bool operator==( directory_iterator const& other) {
|
||||
bool operator==( directory_iterator const& other) const {
|
||||
return i_ == other.i_;
|
||||
}
|
||||
|
||||
bool operator!=( directory_iterator const& other) {
|
||||
bool operator!=( directory_iterator const& other) const {
|
||||
return i_ != other.i_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user