From 2a3eabc4bf6d02633831ea53673f2cf66b37e77a Mon Sep 17 00:00:00 2001 From: yao Date: Mon, 6 Jun 2016 09:07:18 -0400 Subject: [PATCH] Added one explicit assigment operator since the member data are qualified as const. --- gtsam/inference/Symbol.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gtsam/inference/Symbol.h b/gtsam/inference/Symbol.h index 102761273..1d71ea3a6 100644 --- a/gtsam/inference/Symbol.h +++ b/gtsam/inference/Symbol.h @@ -106,6 +106,15 @@ public: return comp != (Key)(*this); } + /** Explicit assignment */ + Symbol& operator=(const Symbol& symbol2) { + if (&symbol2 != this) { + (unsigned char&) c_ = symbol2.c_; + (std::uint64_t&) j_ = symbol2.j_; + } + return *this; + } + /** Return a filter function that returns true when evaluated on a Key whose * character (when converted to a Symbol) matches \c c. Use this with the * Values::filter() function to retrieve all key-value pairs with the