Merge pull request #153 from wheremyfoodat/wheremyfoodat-patch-2

Fix helpers.hpp on Android
This commit is contained in:
wheremyfoodat 2023-07-31 16:57:26 +03:00 committed by GitHub
commit d28796fd3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,7 +125,7 @@ namespace Helpers {
return getBits<offset, bits, ValueT, ValueT>(value);
}
#ifdef HELPERS_APPLE_CLANG
#if defined(HELPERS_APPLE_CLANG) || defined(__ANDROID__)
template <class To, class From>
constexpr To bit_cast(const From& from) noexcept {
return *reinterpret_cast<const To*>(&from);