mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-06-15 00:16:17 +08:00
Use __cpp_lib_type_identity
This commit is contained in:
parent
fbde6e7792
commit
caed2c2948
@ -16,7 +16,7 @@
|
|||||||
* std::type_identity was introduced in >= C++20 so we put
|
* std::type_identity was introduced in >= C++20 so we put
|
||||||
* together a small shim for it if it doesn't exist.
|
* together a small shim for it if it doesn't exist.
|
||||||
*/
|
*/
|
||||||
#if __cplusplus < 202002L
|
#if !defined(__cpp_lib_type_identity)
|
||||||
namespace std {
|
namespace std {
|
||||||
template<typename T>
|
template<typename T>
|
||||||
struct type_identity { using type = T; };
|
struct type_identity { using type = T; };
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user