summaryrefslogtreecommitdiff
path: root/src/atomic.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-03-23 23:02:35 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-03-29 22:43:34 +0200
commit8d2dd0685e130b1e6ad479b30fd3e96581763e60 (patch)
treec5a38e491cf85953a0a9396a0345b3bb18409b95 /src/atomic.h
parente584e1b0343542e08ba834307dab8aa3a745d0cf (diff)
Use new Atomic class.
Diffstat (limited to 'src/atomic.h')
-rw-r--r--src/atomic.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/atomic.h b/src/atomic.h
index 11c87fc..f800f68 100644
--- a/src/atomic.h
+++ b/src/atomic.h
@@ -35,15 +35,15 @@ class Atomic;
// use std::atomic if possible
template <typename T>
-class Atomic<T, typename std::enable_if<std::is_trivially_copyable<T>::value>::type>
+class Atomic<T, typename std::enable_if<std::is_pod<T>::value>::type>
: public std::atomic<T> {
};
// else work around it using a mutex
template <typename T>
-class Atomic<T, typename std::enable_if<!std::is_trivially_copyable<T>::value>::type> {
+class Atomic<T, typename std::enable_if<!std::is_pod<T>::value>::type> {
public:
- using self_type = Atomic<T, typename std::enable_if<!std::is_trivially_copyable<T>::value>::type>;
+ using self_type = Atomic<T, typename std::enable_if<!std::is_pod<T>::value>::type>;
Atomic()
: data{}