diff --git a/include/iris/x4/debug/annotate.hpp b/include/iris/x4/debug/annotate.hpp index 515223961..f1b45f167 100644 --- a/include/iris/x4/debug/annotate.hpp +++ b/include/iris/x4/debug/annotate.hpp @@ -15,34 +15,34 @@ #include -#include +#include #include -#include #include +#include + namespace iris::x4 { namespace contexts { struct error_handler; } // contexts -enum struct annotated_rule_kind : unsigned +enum struct annotated_rule_kind : std::uint8_t { annotate_none = 0, - annotate_success = 1 << 0, // suitable for any child parsers - annotate_expectation_failure = 1 << 1, // suitable for root parser - annotate_trace = 1 << 2, // suitable for any child parsers (except for the primitive ones) + annotate_success = 1u << 0, // suitable for any child parsers + annotate_expectation_failure = 1u << 1, // suitable for root parser + annotate_trace = 1u << 2, // suitable for any child parsers (except for the primitive ones) }; } // iris::x4 -namespace iris { - template<> -struct bitops_enabled : std::true_type {}; - -} // iris +struct iris::enum_traits +{ + static constexpr int max_bit = 2; +}; namespace iris::x4 { diff --git a/modules/iris b/modules/iris index f69f014ac..ba5c2bdea 160000 --- a/modules/iris +++ b/modules/iris @@ -1 +1 @@ -Subproject commit f69f014ac34990089d3a1b5489c4384fe5f04266 +Subproject commit ba5c2bdea2fef9e86a17d5c189fd6af67a0aa4a5