Fix compilation conflict on XCode 26

This commit is contained in:
Georg Hagen
2025-10-14 15:47:48 +02:00
parent 5a0dbf4c70
commit 2c3578b19a
2 changed files with 14 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#include "String.hpp"
#include <utf8.h>
namespace OpenVulkano
{
size_t String::CharCount() const { return utf8::distance(m_string.begin(), m_string.end()); }
}

View File

@@ -13,7 +13,6 @@
#include <c4/substr_fwd.hpp>
#include <c4/format.hpp>
#include <c4/charconv.hpp>
#include <utf8.h>
#include <type_traits>
namespace OpenVulkano
@@ -93,7 +92,7 @@ namespace OpenVulkano
size_t size() const { return m_string.size(); }
bool Empty() const { return m_string.empty(); }
size_t Capacity() const { return m_string.capacity(); }
//size_t CharCount() const { return utf8::distance(m_string.begin(), m_string.end()); }
size_t CharCount() const;
char& Front() { return m_string.front(); }
char& Back() { return m_string.back(); }