From b6837dc4c3a828104def9cc4d02fa5c7cbd6423c Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 21 Jul 2026 19:46:42 -0400 Subject: [PATCH] rapidhash: Fix compilation as C++14 with GCC 5.5 Enable `inline constexpr` markup only for specific compilers to avoid `error: call to non-constexpr function ...`. --- Utilities/cmrapidhash/rapidhash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/cmrapidhash/rapidhash.h b/Utilities/cmrapidhash/rapidhash.h index 909a1062fc..b71c4e587d 100644 --- a/Utilities/cmrapidhash/rapidhash.h +++ b/Utilities/cmrapidhash/rapidhash.h @@ -57,7 +57,7 @@ # ifndef RAPIDHASH_INLINE # define RAPIDHASH_INLINE RAPIDHASH_ALWAYS_INLINE # endif - # if __cplusplus >= 201402L && !defined(_MSC_VER) + # if __cplusplus >= 201402L && ((defined(__GNUC__) && __GNUC__ > 5) || defined(__INTEL_COMPILER) || defined(__clang__)) # define RAPIDHASH_INLINE_CONSTEXPR RAPIDHASH_ALWAYS_INLINE constexpr # else # define RAPIDHASH_INLINE_CONSTEXPR RAPIDHASH_ALWAYS_INLINE