From 1c4f744eac0a6c59a91e800d882168a5598f6fbe Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 26 Nov 2024 22:48:56 +0100 Subject: [PATCH] fix: compilation fixed again (stupid modules build does not recompile properly and the local build has passed twice with errors in the code :-() --- src/core/include/mp-units/framework/symbol_text.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/include/mp-units/framework/symbol_text.h b/src/core/include/mp-units/framework/symbol_text.h index faef17bb..af3a8452 100644 --- a/src/core/include/mp-units/framework/symbol_text.h +++ b/src/core/include/mp-units/framework/symbol_text.h @@ -63,7 +63,7 @@ constexpr bool is_basic_literal_character_set_char(char ch) return ch == 0x00 || (0x07 <= ch && ch <= 0x0D) || (0x20 <= ch && ch <= 0x7E); }; -template +template constexpr bool is_basic_literal_character_set(InputIt begin, InputIt end) noexcept { return all_of(begin, end, is_basic_literal_character_set_char); @@ -78,7 +78,7 @@ constexpr bool is_basic_literal_character_set(const char (&txt)[N]) noexcept template constexpr fixed_u8string to_u8string(fixed_string txt) { - MP_UNITS_EXPECTS(is_basic_literal_character_set(txt)); + MP_UNITS_EXPECTS(is_basic_literal_character_set(txt.begin(), txt.end())); return std::bit_cast>(txt); }