aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/utility
diff options
context:
space:
mode:
Diffstat (limited to 'extension/src/openvic-extension/utility')
-rw-r--r--extension/src/openvic-extension/utility/StringLiteral.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/extension/src/openvic-extension/utility/StringLiteral.hpp b/extension/src/openvic-extension/utility/StringLiteral.hpp
index 90b18cd..1298254 100644
--- a/extension/src/openvic-extension/utility/StringLiteral.hpp
+++ b/extension/src/openvic-extension/utility/StringLiteral.hpp
@@ -53,7 +53,7 @@ namespace OpenVic {
constexpr iterator operator+(const difference_type other) const {
return _ptr + other;
}
- constexpr friend iterator operator+(const difference_type value, const iterator& other) {
+ constexpr friend iterator operator+(const difference_type value, iterator const& other) {
return other + value;
}
constexpr iterator& operator--() {
@@ -69,19 +69,19 @@ namespace OpenVic {
_ptr -= i;
return *this;
}
- constexpr difference_type operator-(const iterator& other) const {
+ constexpr difference_type operator-(iterator const& other) const {
return _ptr - other._ptr;
}
constexpr iterator operator-(const difference_type other) const {
return _ptr - other;
}
- friend iterator operator-(const difference_type value, const iterator& other) {
+ friend iterator operator-(const difference_type value, iterator const& other) {
return other - value;
}
constexpr reference operator[](difference_type idx) const {
return _ptr[idx];
}
- constexpr auto operator<=>(const iterator&) const = default; // three-way comparison C++20
+ constexpr auto operator<=>(iterator const&) const = default; // three-way comparison C++20
private:
pointer _ptr;