Skip to content

Runtime class name for bare IInspectable should not be "Object" - #930

Merged
Kenny Kerr (kennykerr) merged 3 commits into
masterfrom
force-empty-runtimeclass-name
Apr 27, 2021
Merged

Runtime class name for bare IInspectable should not be "Object"#930
Kenny Kerr (kennykerr) merged 3 commits into
masterfrom
force-empty-runtimeclass-name

Conversation

@oldnewthing

Copy link
Copy Markdown
Member

This tickles an edge case in the metadata-based marshaller. Use an empty string instead.

This tickles an edge case in the metadata-based marshaller.
Use an empty string instead.
Comment thread strings/base_implements.h
};

template <>
struct runtime_class_name<Windows::Foundation::IInspectable>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that name_of still returns Object, which is necessary for proper autogeneration of parameterized interfaces.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that's kinda important. 😉

@kennykerr Kenny Kerr (kennykerr) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kennykerr
Kenny Kerr (kennykerr) merged commit 18670d2 into master Apr 27, 2021
@kennykerr
Kenny Kerr (kennykerr) deleted the force-empty-runtimeclass-name branch April 27, 2021 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants