From d738c9f8fd4976b5c2460be7e3b9d794ff745f65 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 21 Feb 2024 17:51:02 +0100 Subject: [PATCH] Xcode: fix to compile Signed-off-by: Simon Rozman --- include/stdex/parser.hpp | 4 ++-- include/stdex/sgml.hpp | 2 +- include/stdex/sgml_unicode.hpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/stdex/parser.hpp b/include/stdex/parser.hpp index 028cc8910..95f29c301 100644 --- a/include/stdex/parser.hpp +++ b/include/stdex/parser.hpp @@ -127,8 +127,8 @@ namespace stdex _In_ int flags = match_default) = 0; /// \cond internal - template - const T* next_sgml_cp(_In_ const char* text, _In_ size_t start, _In_ size_t end, _Out_ size_t& chr_end, _Out_ T(&buf)[5]) + template + const T_out* next_sgml_cp(_In_ const char* text, _In_ size_t start, _In_ size_t end, _Out_ size_t& chr_end, _Out_ T_out(&buf)[5]) { if (text[start] == '&') { // Potential entity start diff --git a/include/stdex/sgml.hpp b/include/stdex/sgml.hpp index f01976ef6..38db9daf1 100644 --- a/include/stdex/sgml.hpp +++ b/include/stdex/sgml.hpp @@ -42,7 +42,7 @@ namespace stdex j = m; else { for (; i < m && strncmp(sgml_unicode[m - 1].sgml, _countof(sgml_unicode[0].sgml), entity, count) == 0; m--); - return sgml_unicode[m].unicode; + return reinterpret_cast(sgml_unicode[m].unicode); } } } diff --git a/include/stdex/sgml_unicode.hpp b/include/stdex/sgml_unicode.hpp index 8b4adb8f5..743b21b33 100644 --- a/include/stdex/sgml_unicode.hpp +++ b/include/stdex/sgml_unicode.hpp @@ -11,8 +11,8 @@ namespace stdex { /// \cond internal struct sgml_unicode_pair { - char sgml[12]; ///< Entity name (without leading & and trailing ;) - utf32_t unicode[3]; ///< UTF-32 string representation + char sgml[12]; ///< Entity name (without leading & and trailing ;) + char32_t unicode[3]; ///< UTF-32 string representation }; inline const sgml_unicode_pair sgml_unicode[] = {