diff --git a/include/helpers.hpp b/include/helpers.hpp index b4806dee..d07c2bb6 100644 --- a/include/helpers.hpp +++ b/include/helpers.hpp @@ -125,7 +125,7 @@ namespace Helpers { return getBits(value); } -#ifdef HELPERS_APPLE_CLANG +#if defined(HELPERS_APPLE_CLANG) || defined(__ANDROID__) template constexpr To bit_cast(const From& from) noexcept { return *reinterpret_cast(&from); @@ -154,4 +154,4 @@ namespace Helpers { // UDLs for memory size values constexpr size_t operator""_KB(unsigned long long int x) { return 1024ULL * x; } constexpr size_t operator""_MB(unsigned long long int x) { return 1024_KB * x; } -constexpr size_t operator""_GB(unsigned long long int x) { return 1024_MB * x; } \ No newline at end of file +constexpr size_t operator""_GB(unsigned long long int x) { return 1024_MB * x; }