diff options
Diffstat (limited to 'raul/AtomicInt.hpp')
-rw-r--r-- | raul/AtomicInt.hpp | 1 |
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; } |