aboutsummaryrefslogtreecommitdiff
path: root/lib/util.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-27 12:40:10 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-27 12:40:10 +0900
commitd532b3f532c2daf45f6a03a7b48e923b6b7651ee (patch)
tree415e6353eb9105b674436239fb1523321b3c5e3f /lib/util.h
parenta0506e5b9da88a5cac8fa4675ceb33501e085684 (diff)
downloadlibquotient-d532b3f532c2daf45f6a03a7b48e923b6b7651ee.tar.gz
libquotient-d532b3f532c2daf45f6a03a7b48e923b6b7651ee.zip
Fix compilation with Clang
Diffstat (limited to 'lib/util.h')
-rw-r--r--lib/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.h b/lib/util.h
index c5363054..c491ff89 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -78,7 +78,7 @@ namespace QMatrixClient
"You cannot make an Omittable<> with a reference type");
public:
explicit Omittable() : Omittable(none) { }
- Omittable(NoneTag) : _value(std::decay_t<T>{}), _omitted(true) { }
+ Omittable(NoneTag) : _value(std::decay_t<T>()), _omitted(true) { }
Omittable(const std::decay_t<T>& val) : _value(val) { }
Omittable(std::decay_t<T>&& val) : _value(std::move(val)) { }
Omittable<T>& operator=(const std::decay_t<T>& val)