Skip to content

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

@rossnichols

Description

@rossnichols

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions