decoder_detail: Avoid MSVC ICE

MSVC has an internal compiler error when assume is present in this constexpr function
This commit is contained in:
Merry 2021-08-15 19:32:05 +01:00
parent 2e4f99ae3d
commit 517e35f845

View file

@ -104,7 +104,10 @@ struct detail {
} }
} }
#ifndef DYNARMIC_IGNORE_ASSERTS
// Avoids a MSVC ICE.
ASSERT(std::all_of(masks.begin(), masks.end(), [](auto m) { return m != 0; })); ASSERT(std::all_of(masks.begin(), masks.end(), [](auto m) { return m != 0; }));
#endif
return std::make_tuple(masks, shifts); return std::make_tuple(masks, shifts);
} }