diff --git a/src/SourceLocation.h b/src/SourceLocation.h index 930d930..98b554d 100644 --- a/src/SourceLocation.h +++ b/src/SourceLocation.h @@ -6,8 +6,8 @@ namespace clangmm { class Offset { public: - bool operator==(const clangmm::Offset &o) {return line==o.line && index==o.index;} - bool operator!=(const clangmm::Offset &o) {return !(*this==o);} + bool operator==(const clangmm::Offset &o) const {return line==o.line && index==o.index;} + bool operator!=(const clangmm::Offset &o) const {return !(*this==o);} unsigned line; unsigned index; //byte index in line (not char number) };