diff --git a/cppwinrt/code_writers.h b/cppwinrt/code_writers.h index 3c77269cd..44b889b81 100644 --- a/cppwinrt/code_writers.h +++ b/cppwinrt/code_writers.h @@ -2716,7 +2716,7 @@ struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable static void write_struct_field(writer& w, std::pair const& field) { - w.write(" @ %;\n", + w.write(" @ % {};\n", field.second, field.first); }