From caed2c2948d1042bc2f0d71c78411b8da1557860 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Sun, 14 Jun 2026 01:17:02 -0400 Subject: [PATCH] Use __cpp_lib_type_identity --- include/chaiscript/dispatchkit/register_function.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/chaiscript/dispatchkit/register_function.hpp b/include/chaiscript/dispatchkit/register_function.hpp index 78245eaa..1969876c 100644 --- a/include/chaiscript/dispatchkit/register_function.hpp +++ b/include/chaiscript/dispatchkit/register_function.hpp @@ -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 struct type_identity { using type = T; };