summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/storage.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/storage.h b/common/storage.h
index da225ef..a7241a7 100644
--- a/common/storage.h
+++ b/common/storage.h
@@ -94,6 +94,10 @@ public:
94 other.d = nullptr; 94 other.d = nullptr;
95 return *this; 95 return *this;
96 } 96 }
97
98 operator bool() const {
99 return (d != nullptr);
100 }
97 private: 101 private:
98 Transaction(Transaction& other); 102 Transaction(Transaction& other);
99 Transaction& operator=(Transaction& other); 103 Transaction& operator=(Transaction& other);