mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-19 01:07:00 -04:00
fix(ricepp): don't constexpr-if std::is_constant_evaluated
This commit is contained in:
parent
bd862d1e2a
commit
bfab19eed4
@ -57,7 +57,7 @@ template <std::unsigned_integral T>
|
||||
}
|
||||
#elif defined(_MSC_VER)
|
||||
static_assert(sizeof(T) == 2 || sizeof(T) == 4 || sizeof(T) == 8);
|
||||
if constexpr (std::is_constant_evaluated()) {
|
||||
if (std::is_constant_evaluated()) {
|
||||
return byteswap_fallback(value);
|
||||
} else {
|
||||
if constexpr (sizeof(T) == 2) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user