We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
optional<T> &
1 parent 3b79c82 commit 41ddf12Copy full SHA for 41ddf12
clang/include/clang/Basic/CustomizableOptional.h
@@ -97,14 +97,6 @@ template <typename T> class CustomizableOptional {
97
template <typename U> T value_or(U &&alt) && {
98
return has_value() ? std::move(operator*()) : std::forward<U>(alt);
99
}
100
-
101
- // Allow conversion to std::optional<T>.
102
- explicit operator std::optional<T> &() const & {
103
- return *this ? **this : std::optional<T>();
104
- }
105
- explicit operator std::optional<T> &&() const && {
106
- return *this ? std::move(**this) : std::optional<T>();
107
108
};
109
110
template <typename T>
0 commit comments