From 1c83d54f705ad786e4a27aaab94e3a0af725a07c Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 12 Feb 2019 15:58:19 +0900 Subject: Omittable: disallow implicit conversion to value_type altogether Because it works, and fails, in surprising ways. And none of the code uses it, as of now. --- lib/util.h | 1 - 1 file changed, 1 deletion(-) (limited to 'lib') diff --git a/lib/util.h b/lib/util.h index 420b0984..596872e2 100644 --- a/lib/util.h +++ b/lib/util.h @@ -159,7 +159,6 @@ namespace QMatrixClient } value_type&& release() { _omitted = true; return std::move(_value); } - operator const value_type&() const & { return value(); } const value_type* operator->() const & { return &value(); } value_type* operator->() & { return &editValue(); } const value_type& operator*() const & { return value(); } -- cgit v1.2.3