[ox/std] Make StringViewCR honest
All checks were successful
Build / build (push) Successful in 1m17s

This commit is contained in:
Gary Talent 2025-05-17 17:34:22 -05:00
parent c424bde06d
commit ea17377700

View File

@ -60,7 +60,7 @@ class StringView: public detail::BaseStringView {
};
using StringViewCR = const StringView&;
using StringViewCR = StringView const&;
constexpr auto operator==(StringViewCR s1, StringViewCR s2) noexcept {
if (s2.len() != s1.len()) {
@ -89,7 +89,7 @@ constexpr auto operator<=>(StringViewCR s1, StringViewCR s2) noexcept {
}
}
constexpr auto write(Writer_c auto &writer, ox::StringViewCR sv) noexcept {
constexpr auto write(Writer_c auto &writer, StringViewCR sv) noexcept {
return writer.write(sv.data(), sv.bytes());
}
@ -100,7 +100,7 @@ constexpr auto toStdStringView(StringViewCR sv) noexcept {
#endif
constexpr ox::Result<int> strToInt(ox::StringViewCR str) noexcept {
constexpr ox::Result<int> strToInt(StringViewCR str) noexcept {
OX_ALLOW_UNSAFE_BUFFERS_BEGIN
int total = 0;
int multiplier = 1;