diff --git a/GPU/Common/GPUCommonTypeTraits.h b/GPU/Common/GPUCommonTypeTraits.h index 6d72f164771bc..96688ab7daa2b 100644 --- a/GPU/Common/GPUCommonTypeTraits.h +++ b/GPU/Common/GPUCommonTypeTraits.h @@ -33,6 +33,13 @@ #endif namespace std { +#ifdef __METAL__ +using metal::numeric_limits; +template +constant constexpr bool is_standard_layout_v = __is_standard_layout(T); +template +constant constexpr bool is_trivially_copyable_v = __is_trivially_copyable(T); +#endif template struct conditional { typedef T type;