From b8f01ab576368a0118928b60e19b97f95839f2c4 Mon Sep 17 00:00:00 2001 From: Yexuan Xiao Date: Sat, 21 Mar 2026 18:28:11 +0800 Subject: [PATCH] Fix integer fields causing impl promotion --- cppwinrt/code_writers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cppwinrt/code_writers.h b/cppwinrt/code_writers.h index 51ecc63d6..9a81d7e06 100644 --- a/cppwinrt/code_writers.h +++ b/cppwinrt/code_writers.h @@ -2950,7 +2950,7 @@ struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable for (auto&& field : type.fields) { - if (field.second.find(':') == std::string::npos) + if (field.second.find(':') == std::string::npos || starts_with(field.second, "std::")) { continue; }