From 2c2988b4a7afd8f049f2b7ac8a793a6f390b7cf7 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Sat, 9 Jan 2010 20:51:00 +0100 Subject: add assignment operator for ro (read only) Accessors --- accessors.h | 1 + 1 file changed, 1 insertion(+) (limited to 'accessors.h') diff --git a/accessors.h b/accessors.h index 8c6391e..017d930 100644 --- a/accessors.h +++ b/accessors.h @@ -56,6 +56,7 @@ public: explicit Accessors(const T &t) : m_t(t) {} const T &operator() () const { return m_t; } + T operator= (const T &t) {return m_t = t; } private: T m_t; -- cgit v1.2.3