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

type_of metafunction should dealias the type #91

Open
katzdm opened this issue Aug 23, 2024 · 1 comment
Open

type_of metafunction should dealias the type #91

katzdm opened this issue Aug 23, 2024 · 1 comment
Labels
p2996-conformance Implemented behavior unintentionally diverges from P2996

Comments

@katzdm
Copy link
Collaborator

katzdm commented Aug 23, 2024

P2996R6 will change type_of to no longer return reflections representing $typedef-name$s - instead, a reflection of the underlying type will be returned (see here).

The type_of function is implemented here, and we should also update the return_type_of metafunction (proposed by P3096), implemented here.

We have an existing desugarType utility in Metafunctions.cpp that often helps with tasks like these - there is an UnwrapAliases argument that should be set to true.

libcxx reflection tests should of course be updated to reflect this change.

@katzdm katzdm added the p2996-conformance Implemented behavior unintentionally diverges from P2996 label Aug 23, 2024
@changkhothuychung
Copy link

Hi, its Nhat. picking this up.

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

2 participants