From 0c20204350e8e16bf039672fba9343234d45b41e Mon Sep 17 00:00:00 2001 From: HedgehogInTheCPP Date: Sat, 22 Aug 2026 23:03:39 +0300 Subject: [PATCH] compilation fix. --- include/fast_float/constexpr_feature_detect.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/include/fast_float/constexpr_feature_detect.h b/include/fast_float/constexpr_feature_detect.h index cba7d41..657b068 100644 --- a/include/fast_float/constexpr_feature_detect.h +++ b/include/fast_float/constexpr_feature_detect.h @@ -98,13 +98,11 @@ #define FASTFLOAT_HAS_BUILTIN(x) false #endif -// #if defined(FASTFLOAT_ASSUME) -// user provided solution -// #elif defined(__cpp_attrubute_assume) +#if defined(__cpp_attrubute_assume) // For support attribute [[assume]] is declared in P1774 #define FASTFLOAT_ASSUME(expr) [[assume(expr)]] -// #else -// #define FASTFLOAT_ASSUME(expr) -// #endif +#else +#define FASTFLOAT_ASSUME(expr) +#endif #endif // FASTFLOAT_CONSTEXPR_FEATURE_DETECT_H