diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-27 12:40:10 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-27 12:40:10 +0900 |
commit | d532b3f532c2daf45f6a03a7b48e923b6b7651ee (patch) | |
tree | 415e6353eb9105b674436239fb1523321b3c5e3f | |
parent | a0506e5b9da88a5cac8fa4675ceb33501e085684 (diff) | |
download | libquotient-d532b3f532c2daf45f6a03a7b48e923b6b7651ee.tar.gz libquotient-d532b3f532c2daf45f6a03a7b48e923b6b7651ee.zip |
Fix compilation with Clang
-rw-r--r-- | lib/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |