Skip to content

Commit

Permalink
DBBitProxyIterator: Fix compile error in swap function
Browse files Browse the repository at this point in the history
Only reported by latest emscripten compiler
  • Loading branch information
Ghabry committed Jan 3, 2025
1 parent 8d886b4 commit cd22828
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lcf/dbbitarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ class DBBitProxyIterator {
DBBitProxyIterator operator--(int) { auto iter = *this; --(*this); return iter; }

void swap(DBBitProxyIterator& o) {
std::swap(_proxy._base, o._base);
std::swap(_proxy._idx, o._idx);
std::swap(_proxy._base, o._proxy._base);
std::swap(_proxy._idx, o._proxy._idx);
}

friend bool operator==(DBBitProxyIterator l, DBBitProxyIterator r) { return l->index() == r->index(); }
Expand Down

0 comments on commit cd22828

Please sign in to comment.