Merge commit '71b1e79d61c1530fc6a19201600623e2b0394163'
All checks were successful
Build / build (push) Successful in 1m34s

This commit is contained in:
2025-05-14 22:31:06 -05:00
62 changed files with 240 additions and 997 deletions

View File

@ -146,12 +146,7 @@ class Span {
return iterator<const T&, const T*, true>(m_items, MaxValue<size_type>, m_size);
}
constexpr T &operator[](std::size_t i) noexcept {
boundsCheck(__FILE__, __LINE__, i, size(), "Span access overflow");
return m_items[i];
}
constexpr T const&operator[](std::size_t i) const noexcept {
constexpr T &operator[](std::size_t i) const noexcept {
boundsCheck(__FILE__, __LINE__, i, size(), "Span access overflow");
return m_items[i];
}

View File

@ -213,22 +213,22 @@ class BasicString {
[[nodiscard]]
constexpr const char *c_str() const noexcept {
return static_cast<const char*>(m_buff.data());
return m_buff.data();
}
[[nodiscard]]
inline explicit operator const char*() const {
constexpr explicit operator const char*() const {
return c_str();
}
#if __has_include(<string>)
[[nodiscard]]
inline std::string toStdString() const {
std::string toStdString() const {
return c_str();
}
[[nodiscard]]
inline explicit operator std::string() const {
explicit operator std::string() const {
return c_str();
}
#endif