From c482d3466c962bc8531b73b928449dd4390945b1 Mon Sep 17 00:00:00 2001 From: krangelov Date: Thu, 12 Aug 2021 08:49:20 +0200 Subject: [PATCH] added != operator removed function null() --- src/runtime/c/pgf/db.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 {