From d532b3f532c2daf45f6a03a7b48e923b6b7651ee Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 27 Jul 2018 12:40:10 +0900 Subject: Fix compilation with Clang --- lib/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{}), _omitted(true) { } + Omittable(NoneTag) : _value(std::decay_t()), _omitted(true) { } Omittable(const std::decay_t& val) : _value(val) { } Omittable(std::decay_t&& val) : _value(std::move(val)) { } Omittable& operator=(const std::decay_t& val) -- cgit v1.2.3