diff --git a/src/runtime/c/pgf/db.h b/src/runtime/c/pgf/db.h index 1d27d637d..a334bcf4d 100644 --- a/src/runtime/c/pgf/db.h +++ b/src/runtime/c/pgf/db.h @@ -25,7 +25,9 @@ public: A* operator->() const { return (A*) (current_base+offset); } operator A*() const { return (A*) (current_base+offset); } bool operator ==(ref& other) const { return offset==other->offset; } + bool operator !=(ref& other) const { return offset!=other->offset; } bool operator ==(moffset other_offset) const { return offset==other_offset; } + bool operator !=(moffset other_offset) const { return offset!=other_offset; } ref& operator= (const ref& r) { offset = r.offset; @@ -50,9 +52,6 @@ public: uint8_t get_tag(variant v) { return (v & (2*sizeof(size_t) - 1)); } - - static - ref null() { return 0; } }; class PGF_INTERNAL_DECL DB {