Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: C++/WinRT headers do not hide experimental APIs #1432

Open
rossnichols opened this issue Aug 20, 2024 · 3 comments
Open

Bug: C++/WinRT headers do not hide experimental APIs #1432

rossnichols opened this issue Aug 20, 2024 · 3 comments

Comments

@rossnichols
Copy link

Version

v2.0.230511.6

Summary

The "ABI" headers for WinRT APIs by default do not expose experimental APIs - the symbol ENABLE_WINRT_EXPERIMENTAL_TYPES must be defined before including the header. C++/WinRT headers, by contrast, do not hide these types, so it's unclear from a developer perspective that they are experimental.

Reproducible example

I don't have a handy repro - I discovered this issue when developing an experimental WinRT API that is still unreleased.

Expected behavior

I expected to have to "opt-in" somehow to experimental types before including the C++/WinRT headers for an experimental API I'd like to consume.

Actual behavior

I didn't have to do anything special.

Additional comments

No response

Copy link

This issue is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@rossnichols
Copy link
Author

(commenting to satisfy the bot) @oldnewthing is there anything you need from me to make this actionable?

Copy link

This issue is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant