aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/RefCount.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-11 08:26:16 +0100
committerMax Kellermann <max@duempel.org>2013-11-11 12:27:16 +0100
commit0b6548a2820faaf6c59cda4fbc75ba81e1d6084a (patch)
tree37181843ba2bb620faaaa8acd5aaaaa75e1135cc /src/util/RefCount.hxx
parentfaf582181649972632ffabb1d9b16aab9e14baa3 (diff)
downloadmpd-0b6548a2820faaf6c59cda4fbc75ba81e1d6084a.tar.gz
mpd-0b6548a2820faaf6c59cda4fbc75ba81e1d6084a.tar.xz
mpd-0b6548a2820faaf6c59cda4fbc75ba81e1d6084a.zip
util/RefCount: no "constexpr" with libc++
Not supported by libc++.
Diffstat (limited to 'src/util/RefCount.hxx')
-rw-r--r--src/util/RefCount.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/util/RefCount.hxx b/src/util/RefCount.hxx
index 9a45a585b..dff850036 100644
--- a/src/util/RefCount.hxx
+++ b/src/util/RefCount.hxx
@@ -42,7 +42,12 @@ class RefCount {
std::atomic_uint n;
public:
- constexpr RefCount():n(1) {}
+#ifndef _LIBCPP_VERSION
+ /* the "constexpr" is missing in libc++'s "atomic"
+ implementation */
+ constexpr
+#endif
+ RefCount():n(1) {}
void Increment() {
++n;