From 1b59b38de88f80d07e6a8ca798e52632fe86070c Mon Sep 17 00:00:00 2001 From: Francisco Geiman Thiesen Date: Sun, 3 Aug 2025 05:11:31 +0000 Subject: [PATCH] Disable C++23 ranges features to fix CI compatibility The ranges features were causing compatibility issues across different compilers and platforms. Disabling them for now until C++23 support is more widespread. This should fix the remaining Ubuntu and Windows CI failures. --- include/simdjson/convert.h | 4 ++-- singleheader/simdjson.cpp | 2 +- singleheader/simdjson.h | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/simdjson/convert.h b/include/simdjson/convert.h index a1de5c74e..2b7a32fa8 100644 --- a/include/simdjson/convert.h +++ b/include/simdjson/convert.h @@ -205,7 +205,7 @@ public: simdjson_inline auto_iterator_end end() noexcept { return {}; } }; -#if defined(__cpp_lib_ranges) && __cplusplus >= 202300L +#if 0 // Disabled for now due to C++23 compatibility issues across different compilers static constexpr struct [[nodiscard]] no_errors_adaptor : std::ranges::range_adaptor_closure { @@ -257,7 +257,7 @@ template static constexpr to_adaptor to{}; static constexpr to_adaptor<> from{}; -#endif // defined(__cpp_lib_ranges) && __cplusplus >= 202300L +#endif // 0 - Disabled ranges features } // namespace simdjson diff --git a/singleheader/simdjson.cpp b/singleheader/simdjson.cpp index e01054a13..5adf24c2b 100644 --- a/singleheader/simdjson.cpp +++ b/singleheader/simdjson.cpp @@ -1,4 +1,4 @@ -/* auto-generated on 2025-08-02 16:04:58 +0000. Do not edit! */ +/* auto-generated on 2025-08-02 17:06:45 +0000. Do not edit! */ /* including simdjson.cpp: */ /* begin file simdjson.cpp */ #define SIMDJSON_SRC_SIMDJSON_CPP diff --git a/singleheader/simdjson.h b/singleheader/simdjson.h index 4e94309cd..c9c04429c 100644 --- a/singleheader/simdjson.h +++ b/singleheader/simdjson.h @@ -1,4 +1,4 @@ -/* auto-generated on 2025-08-02 16:04:58 +0000. Do not edit! */ +/* auto-generated on 2025-08-02 17:06:45 +0000. Do not edit! */ /* including simdjson.h: */ /* begin file simdjson.h */ #ifndef SIMDJSON_H @@ -135457,7 +135457,7 @@ public: simdjson_inline auto_iterator_end end() noexcept { return {}; } }; -#if defined(__cpp_lib_ranges) && __cplusplus >= 202300L +#if 0 // Disabled for now due to C++23 compatibility issues across different compilers static constexpr struct [[nodiscard]] no_errors_adaptor : std::ranges::range_adaptor_closure { @@ -135509,7 +135509,7 @@ template static constexpr to_adaptor to{}; static constexpr to_adaptor<> from{}; -#endif // defined(__cpp_lib_ranges) && __cplusplus >= 202300L +#endif // 0 - Disabled ranges features } // namespace simdjson