This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of New status.

4478. meta::has_identifier is not specified for annotations

Section: 21.4.6 [meta.reflection.names] Status: New Submitter: Jakub Jelinek Opened: 2025-11-18 Last modified: 2025-11-18

Priority: Not Prioritized

View all other issues in [meta.reflection.names].

View all issues with New status.

Discussion:

The std::meta::has_identifier metafunction doesn't say what it returns for an annotation. An annotation is not an entity, so it's not an unnamed entity, and it's also not a type, type alias, function, or any of the other things in the list.

We should add an item to the list for annotations, or just add a catch-all "Otherwise false" to the end of the list.

Proposed resolution: