Skip to content

fix: schema input type member default init error on clang 14 #310

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

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

wravery
Copy link
Contributor

@wravery wravery commented Sep 9, 2024

The same issue exists in the schema input types as in the client input types, although I never actually saw that with any of the schema samples.

The error I saw once with clang 14 on an Ubuntu 22.04 derived image (Pop OS!, specifically) had to do with not having a constructor for nested input type members available in the header when compiling the default member initializers using {} at the end of the member declaration. Since we've already pulled the default constructor for the type itself into the source file to fix ODR violations, it makes sense to move the default member initialization into the constructor's initializer list.

@wravery wravery merged commit 681b0e1 into microsoft:main Sep 9, 2024
13 checks passed
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.

1 participant