summaryrefslogtreecommitdiff
path: root/src/atomic.h
diff options
context:
space:
mode:
authorChristian Glöckner <cgloeckner@freenet.de>2016-03-31 08:10:44 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-03-31 21:15:00 +0200
commit0d2668121d2b3e188dc60cb7bdb5d9dcc39beab4 (patch)
tree18022fbc02a22cd57de4c9348a8dfdc52f9745f1 /src/atomic.h
parentd1d1e525a579ab55e1ffb8acc1b269360df5b1e9 (diff)
Fixed API of class Atomic for POD
Diffstat (limited to 'src/atomic.h')
-rw-r--r--src/atomic.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/atomic.h b/src/atomic.h
index f800f68..1b92257 100644
--- a/src/atomic.h
+++ b/src/atomic.h
@@ -37,6 +37,11 @@ class Atomic;
template <typename T>
class Atomic<T, typename std::enable_if<std::is_pod<T>::value>::type>
: public std::atomic<T> {
+
+ public:
+ // inherit methods
+ using std::atomic<T>::atomic;
+ using std::atomic<T>::operator=;
};
// else work around it using a mutex