summaryrefslogtreecommitdiffstats
path: root/include/framework/interface/Record.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/framework/interface/Record.h')
-rw-r--r--include/framework/interface/Record.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/framework/interface/Record.h b/include/framework/interface/Record.h
index 5b9f307..f4105c6 100644
--- a/include/framework/interface/Record.h
+++ b/include/framework/interface/Record.h
@@ -97,9 +97,17 @@ template <typename K, typename V>
struct Record {
K key;
V value;
- uint32_t header = 0;
- inline bool operator<(const Record& other) const {
+ Record &operator=(const Record &other) {
+ this->key = K();
+
+ this->key = other.key;
+ this->value = other.value;
+
+ return *this;
+ }
+
+ inline bool operator<(const Record& other) const {
return key < other.key || (key == other.key && value < other.value);
}