aboutsummaryrefslogtreecommitdiff
path: root/lib/util.h
diff options
context:
space:
mode:
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)