Add copy constructor
[platform/core/uifw/ise-engine-sunpinyin.git] / src / slm / slm.h
index 501146a..f626281 100644 (file)
@@ -106,6 +106,13 @@ public:
         bool operator<(const TState & b) const {
             return unsigned(*this) < unsigned(b);
         }
+        TState& operator=(const TState& b) {
+            if (m_all == b.m_all)
+                return *this;
+
+            m_all = b.m_all;
+            return *this;
+        }
 
 private:
         unsigned int m_all;