Try to fix old Clang build
This commit is contained in:
@@ -137,7 +137,7 @@ namespace Helpers {
|
|||||||
return getBits<offset, bits, ValueT, ValueT>(value);
|
return getBits<offset, bits, ValueT, ValueT>(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HELPERS_APPLE_CLANG) || defined(__ANDROID__)
|
#if defined(HELPERS_APPLE_CLANG) || defined(__ANDROID__) || (defined(__clang_major__) && __clang_major__ <= 14)
|
||||||
template <class To, class From>
|
template <class To, class From>
|
||||||
constexpr To bit_cast(const From& from) noexcept {
|
constexpr To bit_cast(const From& from) noexcept {
|
||||||
return *reinterpret_cast<const To*>(&from);
|
return *reinterpret_cast<const To*>(&from);
|
||||||
|
|||||||
Reference in New Issue
Block a user