From 67ec55501fcb373a663d8347e821430ebd4501af Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 17 Sep 2011 19:50:53 +0000 Subject: Add check for header if C++0x is enabled. Fix compilation with --c++0x --test. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@3470 a436a847-0d15-0410-975c-d299462d15a1 --- raul/AtomicInt.hpp | 1 + raul/AtomicPtr.hpp | 2 ++ 2 files changed, 3 insertions(+) (limited to 'raul') 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; } diff --git a/raul/AtomicPtr.hpp b/raul/AtomicPtr.hpp index 28797de..0de323c 100644 --- a/raul/AtomicPtr.hpp +++ b/raul/AtomicPtr.hpp @@ -18,6 +18,8 @@ #ifndef RAUL_ATOMIC_PTR_HPP #define RAUL_ATOMIC_PTR_HPP +#include + #ifdef RAUL_CPP0x #include -- cgit v1.2.1