decoder_detail: Workaround #708

This commit is contained in:
Merry 2022-09-02 21:15:50 +01:00
parent e49fee0ca1
commit af51845a53

View file

@ -42,7 +42,7 @@ struct detail {
* A '0' in a bitstring indicates that a zero must be present at that bit position. * A '0' in a bitstring indicates that a zero must be present at that bit position.
* A '1' in a bitstring indicates that a one must be present at that bit position. * A '1' in a bitstring indicates that a one must be present at that bit position.
*/ */
#ifdef __APPLE__ // AppleClang workaround #ifdef __clang__
static constexpr auto GetMaskAndExpect(std::array<char, opcode_bitsize> bitstring) { static constexpr auto GetMaskAndExpect(std::array<char, opcode_bitsize> bitstring) {
#else #else
static consteval auto GetMaskAndExpect(std::array<char, opcode_bitsize> bitstring) { static consteval auto GetMaskAndExpect(std::array<char, opcode_bitsize> bitstring) {