llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: David Stone (davidstone) <details> <summary>Changes</summary> --- Full diff: https://github.com/llvm/llvm-project/pull/93385.diff 1 Files Affected: - (modified) clang/include/clang/Basic/CustomizableOptional.h (-8) ``````````diff diff --git a/clang/include/clang/Basic/CustomizableOptional.h b/clang/include/clang/Basic/CustomizableOptional.h index 84d40025ee41b..2d6ae6a781a55 100644 --- a/clang/include/clang/Basic/CustomizableOptional.h +++ b/clang/include/clang/Basic/CustomizableOptional.h @@ -97,14 +97,6 @@ template <typename T> class CustomizableOptional { template <typename U> T value_or(U &&alt) && { return has_value() ? std::move(operator*()) : std::forward<U>(alt); } - - // Allow conversion to std::optional<T>. - explicit operator std::optional<T> &() const & { - return *this ? **this : std::optional<T>(); - } - explicit operator std::optional<T> &&() const && { - return *this ? std::move(**this) : std::optional<T>(); - } }; template <typename T> `````````` </details> https://github.com/llvm/llvm-project/pull/93385 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits