aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/util
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-21 09:46:06 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-21 09:46:06 +0100
commit7588439db08a671764345764eb05bcb853a90d76 (patch)
tree6847d8aa1b1b911dde55d529330c7144c6fafbf0 /src/crepe/util
parentba3b97467ffa9df03d74e87bd567e3dfc521df05 (diff)
parent1cc120a0031cfc19c35240da8390d9129b4d75a3 (diff)
Merge remote-tracking branch 'origin/master' into max/doxygen
Diffstat (limited to 'src/crepe/util')
-rw-r--r--src/crepe/util/Proxy.h2
-rw-r--r--src/crepe/util/Proxy.hpp6
2 files changed, 8 insertions, 0 deletions
diff --git a/src/crepe/util/Proxy.h b/src/crepe/util/Proxy.h
index b34f7c6..789144a 100644
--- a/src/crepe/util/Proxy.h
+++ b/src/crepe/util/Proxy.h
@@ -16,6 +16,8 @@ template <typename T>
class Proxy {
public:
//! Set operator
+ Proxy & operator=(Proxy &);
+ //! Set operator
Proxy & operator=(const T &);
//! Get operator
operator const T &();
diff --git a/src/crepe/util/Proxy.hpp b/src/crepe/util/Proxy.hpp
index b9923db..ef2b69f 100644
--- a/src/crepe/util/Proxy.hpp
+++ b/src/crepe/util/Proxy.hpp
@@ -14,6 +14,12 @@ Proxy<T> & Proxy<T>::operator=(const T & val) {
}
template <typename T>
+Proxy<T> & Proxy<T>::operator=(Proxy & proxy) {
+ this->broker.set(T(proxy));
+ return *this;
+}
+
+template <typename T>
Proxy<T>::operator const T &() {
return this->broker.get();
}