Fix compilation conflict on XCode 26
This commit is contained in:
13
openVulkanoCpp/Data/Containers/String.cpp
Normal file
13
openVulkanoCpp/Data/Containers/String.cpp
Normal 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()); }
|
||||
}
|
||||
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user