Skip to content

Commit

Permalink
Remove IDIC attribute from exclusive interfaces (#1045)
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalchadha authored Nov 15, 2021
1 parent 3ec3981 commit c46e536
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cswinrt/code_writers.h
Original file line number Diff line number Diff line change
Expand Up @@ -5663,13 +5663,14 @@ public static Guid PIID = Vftbl.PIID;
std::map<std::string, required_interface> required_interfaces;
write_required_interface_members_for_abi_type(w, type, required_interfaces, false);

w.write(R"([DynamicInterfaceCastableImplementation]
w.write(R"(%
%
internal unsafe interface % : %
{
%%%%%}
)",
// Interface abi implementation
is_exclusive_to(type) ? "" : "[DynamicInterfaceCastableImplementation]",
bind<write_guid_attribute>(type),
type_name,
bind<write_type_name>(type, typedef_name_type::CCW, false),
Expand Down

0 comments on commit c46e536

Please sign in to comment.