aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-02-12 15:58:19 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-02-15 07:47:12 +0900
commit1c83d54f705ad786e4a27aaab94e3a0af725a07c (patch)
treeef97a051315a94fc8cd420504cd60178988ac403 /lib
parent63e2c0338e07cbc1939a5ad0f8047a9edab9b97c (diff)
downloadlibquotient-1c83d54f705ad786e4a27aaab94e3a0af725a07c.tar.gz
libquotient-1c83d54f705ad786e4a27aaab94e3a0af725a07c.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/util.h1
1 files changed, 0 insertions, 1 deletions
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(); }