Created on 2025-10-20.00:00:00 last changed 1 month ago
Proposed resolution:
This wording is relative to N5014.
Modify [meta.reflection.define.aggregate] as indicated:
-7- Let C be the
classtype represented byclass_typeand rK be the Kth reflection value in `mdescrs`. For every rK in `mdescrs`, let (TK, NK, AK, WK, NUAK) be the corresponding data member description represented by rK.-8- Constant when:
- (8.?) — `class_type` represents a cv-unqualified class type;
- (8.1) — C is incomplete from every point in the evaluation context;
[ Kona 2025-11-08; Status changed: Immediate → WP. ]
[ 2025-10-24; LWG telecon. Jonathan updates wording ]
Make a minimal change for now, can add support for aliases later.
[ Kona 2025-11-03; approved by LWG. Status changed: New → Immediate. ]
This wording is relative to N5014.
Modify [meta.reflection.define.aggregate] as indicated:
-7- Let C be the class represented by
dealias(class_type)and rK be the Kth reflection value in `mdescrs`. For every rK in `mdescrs`, let (TK, NK, AK, WK, NUAK) be the corresponding data member description represented by rK.-8- Constant when:
- (8.?) — `dealias(class_type)` represents a class type;
- (8.1) — C is incomplete from every point in the evaluation context;
[ 2025-10-23; Reflector poll. ]
Set priority to 1 after reflector poll.
The `meta::define_aggregate` function doesn't say what happens if C does not represent a class type.
It's also unclear whether it should work with aliases to class types, e.g.
struct S; using A = S; ... meta::define_aggregate(^^A, {});
And what happens if you try to define a cv-qualified type:
struct S; meta::define_aggregate(^^const S, {});
Should this be an error, or inject a definition of the unqualified type?
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2025-11-11 10:48:55 | admin | set | messages: + msg15681 |
| 2025-11-11 10:48:55 | admin | set | status: immediate -> wp |
| 2025-11-04 01:08:20 | admin | set | status: new -> immediate |
| 2025-10-27 10:00:32 | admin | set | messages: + msg15458 |
| 2025-10-27 09:58:11 | admin | set | messages: + msg15454 |
| 2025-10-24 17:29:22 | admin | set | messages: + msg15415 |
| 2025-10-20 13:04:18 | admin | set | messages: + msg15270 |
| 2025-10-20 00:00:00 | admin | create | |