diff options
-rw-r--r-- | include/utility.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/utility.h b/include/utility.h index 9d1e941..ef66ca2 100644 --- a/include/utility.h +++ b/include/utility.h @@ -163,7 +163,7 @@ struct parameter_tag<t> \ : sub_value; }; - bool is_parameter_tag_compatible(uint64_t a, uint64_t b) + constexpr bool is_parameter_tag_compatible(uint64_t a, uint64_t b) { if (a == 0) return b == 0; @@ -178,7 +178,7 @@ struct parameter_tag<t> \ return is_parameter_tag_compatible(a/6, b/6); } - unsigned find_closing_tag_runtime(const char* s, unsigned p) + constexpr unsigned find_closing_tag_runtime(const char* s, unsigned p) { return s[p] == 0 @@ -187,7 +187,7 @@ struct parameter_tag<t> \ ? p : find_closing_tag_runtime(s, p + 1); } - uint64_t get_parameter_tag_runtime(const char* s, unsigned p = 0) + static inline uint64_t get_parameter_tag_runtime(const char* s, unsigned p = 0) { return s[p] == 0 |