From 649d8a07f3887fc715e565df9c9042107ef86141 Mon Sep 17 00:00:00 2001 From: Vladyslav Baranovskyi Date: Thu, 7 Nov 2024 16:01:46 +0200 Subject: [PATCH] Specializing numeric_limits for float16 in any case --- openVulkanoCpp/Math/Float16.hpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/openVulkanoCpp/Math/Float16.hpp b/openVulkanoCpp/Math/Float16.hpp index d013a16..7cc2fae 100644 --- a/openVulkanoCpp/Math/Float16.hpp +++ b/openVulkanoCpp/Math/Float16.hpp @@ -236,7 +236,14 @@ namespace std return hash()(key.m_data); } }; +} +#endif +#undef __has_keyword + + +namespace std +{ template <> class numeric_limits { @@ -279,9 +286,5 @@ namespace std }; } -#endif -#undef __has_keyword - - typedef float16 fp16; typedef float16 half;