From 8dad6d9092523d696cc8953f10d2d7ac7643c7fb Mon Sep 17 00:00:00 2001 From: "Ying-Chun Liu (PaulLiu)" Date: Wed, 12 Aug 2026 02:51:22 +0100 Subject: [PATCH] base: cvd: cuttlefish: Fix name resolution collision for Flag return type in FlagValue Qualify the return type `Flag` with `cuttlefish::Flag` in `FlagValue::Flag()` to prevent the compiler from interpreting the return type as the member function name itself during name lookup. Signed-off-by: Ying-Chun Liu (PaulLiu) --- base/cvd/cuttlefish/host/libs/web/cas/cas_flags.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/cvd/cuttlefish/host/libs/web/cas/cas_flags.h b/base/cvd/cuttlefish/host/libs/web/cas/cas_flags.h index 87b675e8f1e..ca79f297c78 100644 --- a/base/cvd/cuttlefish/host/libs/web/cas/cas_flags.h +++ b/base/cvd/cuttlefish/host/libs/web/cas/cas_flags.h @@ -40,7 +40,9 @@ class FlagValue { private: friend struct CasDownloaderFlags; - Flag Flag(const std::string& name) { return GflagsCompatFlag(name, value_); } + cuttlefish::Flag Flag(const std::string& name) { + return GflagsCompatFlag(name, value_); + } std::optional value_; T default_value_;