Use __cpp_lib_type_identity

This commit is contained in:
Rob Loach 2026-06-14 01:17:02 -04:00
parent fbde6e7792
commit caed2c2948
No known key found for this signature in database
GPG Key ID: 627C60834A74A21A

View File

@ -16,7 +16,7 @@
* std::type_identity was introduced in >= C++20 so we put
* together a small shim for it if it doesn't exist.
*/
#if __cplusplus < 202002L
#if !defined(__cpp_lib_type_identity)
namespace std {
template<typename T>
struct type_identity { using type = T; };