In C++20 the type trait type_identity was introduced. For the same purpose there is __identity for pre-C++20 code. The name is confusing, because since C++20 there is also identity, which isn't a type trait.
Details
Details
- Reviewers
ldionne Mordante - Group Reviewers
Restricted Project - Commits
- rG3c6bd176fb89: [libc++] Rename __identity to __type_identity
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
I'm a bit puzzled why this is the only one using _LIBCPP_NODEBUG. @ldionne do you know whether this inconsistency is intended.
Note When we fix it, I prefer a separate patch.