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

Issue #92: Enforce structural type constraint of 'reflect_value' via requires clause #94

Merged

Conversation

delimbetov
Copy link

Issue number of the reported bug or feature request: #92

Describe your changes

  • Implemented is_structural_type metafunction without exposing it through std
  • Added it to the requires clause of reflect_value
  • Fixed crash in StmtPrinter::VisitCXXMetafunctionExpr: the for loop was incrementing a pointer instead of an index variable

Testing performed
Added a few static_asserts that test if reflect_value can be instantiated with a given type.

@delimbetov delimbetov marked this pull request as ready for review September 2, 2024 15:47
@katzdm katzdm merged commit 0c921e2 into bloomberg:p2996 Sep 4, 2024
11 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.

2 participants