base::Optional::operator bool doesn't convert to 'bool' |
|
Issue descriptionI expect this code to compile: Optional<TestObject> a; bool b = a; because base::Optional has constexpr explicit operator bool() However, it produces an error // error: no viable conversion from // 'Optional<base::(anonymous namespace)::TestObject>' to 'bool' See https://codereview.chromium.org/2437313002 I don't know why this doesn't work, yet.
,
Oct 21 2016
:P clang error request filed: https://llvm.org/bugs/show_bug.cgi?id=30754 |
|
►
Sign in to add a comment |
|
Comment 1 by scheib@chromium.org
, Oct 21 2016