diff options
Diffstat (limited to 'src/crepe/ValueBroker.h')
-rw-r--r-- | src/crepe/ValueBroker.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/crepe/ValueBroker.h b/src/crepe/ValueBroker.h index 9d30a2e..c3359a1 100644 --- a/src/crepe/ValueBroker.h +++ b/src/crepe/ValueBroker.h @@ -10,14 +10,13 @@ public: virtual void set(const T &); virtual const T & get(); - typedef std::function<void(T & value, const T & target)> setter_t; - typedef std::function<const T & (T & value)> getter_t; + typedef std::function<void(const T & target)> setter_t; + typedef std::function<const T & ()> getter_t; private: - T & value; setter_t setter; getter_t getter; public: - ValueBroker(T &, const setter_t &, const getter_t &); + ValueBroker(const setter_t &, const getter_t &); ValueBroker(T &); }; |