Skip to content

Commit

Permalink
Merge pull request #257 from wheremyfoodat/wheremyfoodat-patch-2
Browse files Browse the repository at this point in the history
Try to fix old clang build v2
  • Loading branch information
wheremyfoodat authored Sep 5, 2023
2 parents 4a532e1 + 3d47bc5 commit 91f4ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ namespace Helpers {
return getBits<offset, bits, ValueT, ValueT>(value);
}

#if defined(HELPERS_APPLE_CLANG) || defined(__ANDROID__) || (defined(__clang_major__) && __clang_major__ <= 14)
#if defined(HELPERS_APPLE_CLANG) || defined(__ANDROID__) || !defined(__cpp_lib_bit_cast)
template <class To, class From>
constexpr To bit_cast(const From& from) noexcept {
return *reinterpret_cast<const To*>(&from);
Expand Down

0 comments on commit 91f4ce2

Please sign in to comment.