From c8c198cae7d9937b20747790680d6557a7387c80 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 29 Sep 2022 20:48:18 +0200 Subject: [PATCH] Drop support for old, broken compilers. These version macros report 4.2.1 on clang. --- server/tracy_robin_hood.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/server/tracy_robin_hood.h b/server/tracy_robin_hood.h index 3b5740e2..65f6fc11 100644 --- a/server/tracy_robin_hood.h +++ b/server/tracy_robin_hood.h @@ -204,13 +204,7 @@ static Counts& counts() { # define ROBIN_HOOD_PRIVATE_DEFINITION_BROKEN_CONSTEXPR() 0 #endif -// workaround missing "is_trivially_copyable" in g++ < 5.0 -// See https://stackoverflow.com/a/31798726/48181 -#if defined(__GNUC__) && __GNUC__ < 5 -# define ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(...) __has_trivial_copy(__VA_ARGS__) -#else -# define ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(...) std::is_trivially_copyable<__VA_ARGS__>::value -#endif +#define ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(...) std::is_trivially_copyable<__VA_ARGS__>::value // helpers for C++ versions, see https://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html #define ROBIN_HOOD_PRIVATE_DEFINITION_CXX() __cplusplus