aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/utility
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-07-19 21:47:02 +0200
committer hop311 <hop3114@gmail.com>2024-07-19 21:47:02 +0200
commit25e469466fbee51efa958d1ca9dd1f270a41c7af (patch)
tree1fcb4f2c1954b17282dc7a3b09711592bf7c1174 /extension/src/openvic-extension/utility
parent6c92fc141c3e44526be43720a342beedeab9ad63 (diff)
Update openvic-simulation to OpenVicProject/OpenVic-Simulation@d1f3a96format-cleanup
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;