aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/utility
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-07-19 22:08:06 +0200
committer GitHub <noreply@github.com>2024-07-19 22:08:06 +0200
commitd4b223b491ec2d9b32393c4c58ad85f18bd9566e (patch)
tree1fcb4f2c1954b17282dc7a3b09711592bf7c1174 /extension/src/openvic-extension/utility
parent6c92fc141c3e44526be43720a342beedeab9ad63 (diff)
parent25e469466fbee51efa958d1ca9dd1f270a41c7af (diff)
Merge pull request #240 from OpenVicProject/format-cleanup
Update openvic-simulation to OpenVicProject/OpenVic-Simulation@d1f3a96
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;