This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of WP status.
meta::dealias needs to work with things that aren't entitiesSection: 21.4.7 [meta.reflection.queries] Status: WP Submitter: Jonathan Wakely Opened: 2025-10-24 Last modified: 2025-11-11
Priority: Not Prioritized
View all other issues in [meta.reflection.queries].
View all issues with WP status.
Discussion:
Addresses US 99-205
Several uses of dealias assume that it can be used with reflections that
represent direct base class relationships, which are not entities.
The spec for dealias says that such uses should fail with an exception.
In the 2025-10-24 LWG telecon it was agreed that dealias should just
be the identity function for non-entities.
[Kona 2025-11-03; approved by LWG. Status changed: New → Immediate.]
[Kona 2025-11-08; Status changed: Immediate → WP.]
Proposed resolution:
This wording is relative to N5014.
Modify 21.4.7 [meta.reflection.queries] as indicated:
consteval info dealias(info r);-49- Returns: If
rrepresents an entity, then aAreflection representing the underlying entity of whatrrepresents. Otherwise,r.[Example 5:
...
— end example]
-50- Throws:meta::exceptionunlessrrepresents an entity.