Fix -Wdeprecated-copy and -Wclass-memaccess warnings on GCC 9

This commit is contained in:
Jonathan G Rennison
2019-11-05 18:08:02 +00:00
parent e81697c363
commit 91ca46c774
3 changed files with 10 additions and 6 deletions

View File

@@ -358,6 +358,8 @@ public:
FlowStatMapIterator(const FlowStatMapIterator<FlowStat, FlowStatMap, btree::btree_map<StationID, uint16>::iterator> &other) :
fsm(other.fsm), current(other.current) {}
FlowStatMapIterator &operator=(const FlowStatMapIterator &) = default;
reference operator*() const { return this->fsm->flows_storage[this->current->second]; }
pointer operator->() const { return &(this->fsm->flows_storage[this->current->second]); }