From 94a7d3116aad03765fd82d763d4d1099c1b1c09d Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 3 Jan 2021 16:20:28 +0100 Subject: [PATCH] Fix mac build with missing concepts header --- plugins/libimhex/include/helpers/utils.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/libimhex/include/helpers/utils.hpp b/plugins/libimhex/include/helpers/utils.hpp index 4e66d7893..b281de1ef 100644 --- a/plugins/libimhex/include/helpers/utils.hpp +++ b/plugins/libimhex/include/helpers/utils.hpp @@ -23,6 +23,13 @@ #define ftello64 ftell #endif +template<> +struct std::is_integral : public std::true_type { }; +template<> +struct std::is_integral : public std::true_type { }; +template<> +struct std::is_signed : public std::true_type { }; + #if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION <= 12000 #if __has_include() // Make sure we break when derived_from is implemented in libc++. Then we can fix a compatibility version above @@ -66,13 +73,6 @@ namespace hex { #define TOKEN_CONCAT_IMPL(x, y) x ## y #define TOKEN_CONCAT(x, y) TOKEN_CONCAT_IMPL(x, y) -template<> -struct std::is_integral : public std::true_type { }; -template<> -struct std::is_integral : public std::true_type { }; -template<> -struct std::is_signed : public std::true_type { }; - namespace hex { template