diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-03-23 23:02:35 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-03-31 21:06:49 +0200 |
commit | bd1434b6cfc59c37362ea6f462034f8265072c9a (patch) | |
tree | 144e01e4865c7f1581b9cfcef42f0eda3bbff971 /src/atomic.h | |
parent | c9f773c9f2c9ea52d5e0ed69b13870c0c5f96acf (diff) |
Use new Atomic class.
Diffstat (limited to 'src/atomic.h')
-rw-r--r-- | src/atomic.h | 6 |
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{} |