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

Promote reflections of references to complete objects to their entities #48

Closed
katzdm opened this issue May 22, 2024 · 1 comment
Closed
Labels
p2996-conformance Implemented behavior unintentionally diverges from P2996

Comments

@katzdm
Copy link
Collaborator

katzdm commented May 22, 2024

Given:

int val = 3;
constexpr auto r = std::meta::reflect_result<int &>(val);

The reflection r should be "promoted" to reflect the entity val. That is, the following should hold:

static_assert(r == ^val);

As of now, it's instead being stored as an RK_const_value whose expression is an lvalue - it should "promote" to an RK_declaration.

@katzdm katzdm added the p2996-conformance Implemented behavior unintentionally diverges from P2996 label May 22, 2024
@katzdm
Copy link
Collaborator Author

katzdm commented Jun 7, 2024

Closed by 43bf5b8.

@katzdm katzdm closed this as completed Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2996-conformance Implemented behavior unintentionally diverges from P2996
Projects
None yet
Development

No branches or pull requests

1 participant