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

Add support for upward conversion in facade_builder::add_facade #157

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

mingxwa
Copy link
Collaborator

@mingxwa mingxwa commented Sep 3, 2024

By default, facade_builder::add_facade does not generate conventions for implicit upward conversion to guarantee minimum binary size. However, upward conversion is helpful when an API requires backward compatibility. With this change, users can opt-in this feature by specifying true as the second parameter of facade_builder::add_facade, at the cost of potentially a little bit larger binary size.

4 unit test cases are added for this change.

@tian-lt
Copy link
Collaborator

tian-lt commented Sep 4, 2024

Add a test to cover the case of prevent from implicit upward conversion with add_facade<T, false>?

@mingxwa mingxwa merged commit 35064e6 into microsoft:main Sep 4, 2024
5 checks passed
@mingxwa mingxwa deleted the user/mingxwa/upward-conversion branch September 4, 2024 05:52
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