Skip to content

Static events should not use the auto trick - #1158

Merged
Scott Jones (Scottj1s) merged 1 commit into
microsoft:masterfrom
oldnewthing:static-events
Jun 8, 2022
Merged

Static events should not use the auto trick#1158
Scott Jones (Scottj1s) merged 1 commit into
microsoft:masterfrom
oldnewthing:static-events

Conversation

@oldnewthing

Copy link
Copy Markdown
Member

The same way we don't use the auto trick for static properties and static methods.

Fixes issue introduced by #1136

The same way we don't use the auto trick for static properties
and static methods.
Comment thread cppwinrt/code_writers.h
return;
}

auto is_opt_type = settings.component_opt && settings.component_filter.includes(type);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is_component_type?

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.

It's "is optimized component type". non-optimized components still can use auto.

@Scottj1s Scott Jones (Scottj1s) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks for the quick turnaround!

@Scottj1s
Scott Jones (Scottj1s) merged commit 4f0be70 into microsoft:master Jun 8, 2022
@oldnewthing
Raymond Chen (oldnewthing) deleted the static-events branch June 8, 2022 22:46
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.

2 participants