summaryrefslogtreecommitdiffstats
path: root/raul/AtomicInt.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'raul/AtomicInt.hpp')
-rw-r--r--raul/AtomicInt.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/raul/AtomicInt.hpp b/raul/AtomicInt.hpp
index 63d5071..a8e6714 100644
--- a/raul/AtomicInt.hpp
+++ b/raul/AtomicInt.hpp
@@ -34,6 +34,7 @@ public:
inline int get() const { return _val.load(); }
inline void operator=(int val) { _val = val; }
+ inline void operator=(const AtomicInt& val) { _val = val.get(); }
inline void operator+=(int val) { _val += val; }