From d3213f3eca0da58417ad2bce9b68e42f3daf9d78 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:33:32 +0300 Subject: [PATCH] Try to fix old Clang build --- include/helpers.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/helpers.hpp b/include/helpers.hpp index f13fc720..cd646c6d 100644 --- a/include/helpers.hpp +++ b/include/helpers.hpp @@ -137,7 +137,7 @@ namespace Helpers { return getBits(value); } -#if defined(HELPERS_APPLE_CLANG) || defined(__ANDROID__) +#if defined(HELPERS_APPLE_CLANG) || defined(__ANDROID__) || (defined(__clang_major__) && __clang_major__ <= 14) template constexpr To bit_cast(const From& from) noexcept { return *reinterpret_cast(&from);