From a09ef31bfa5b0dd6a15f253efd97dbb3b919a45b Mon Sep 17 00:00:00 2001 From: OEOTYAN Date: Fri, 3 Jan 2025 17:53:43 +0800 Subject: [PATCH] fix: fix ambiguous --- src/ll/api/base/Alias.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ll/api/base/Alias.h b/src/ll/api/base/Alias.h index c7e1cd6d34..19f539a8d8 100644 --- a/src/ll/api/base/Alias.h +++ b/src/ll/api/base/Alias.h @@ -73,10 +73,8 @@ struct TypedStorageImpl { [[nodiscard]] T const& operator*() const& { return get(); } [[nodiscard]] T&& operator*() && { return std::move(get()); } [[nodiscard]] T const&& operator*() const&& { return std::move(get()); } - [[nodiscard]] operator T&() & { return get(); } - [[nodiscard]] operator T const&() const& { return get(); } - [[nodiscard]] operator T&&() && { return std::move(get()); } - [[nodiscard]] operator T const&&() const&& { return std::move(get()); } + [[nodiscard]] operator T&() { return get(); } + [[nodiscard]] operator T const&() const { return get(); } }; template