From 25e469466fbee51efa958d1ca9dd1f270a41c7af Mon Sep 17 00:00:00 2001 From: hop311 Date: Fri, 19 Jul 2024 20:47:02 +0100 Subject: Update openvic-simulation to OpenVicProject/OpenVic-Simulation@d1f3a96 --- extension/src/openvic-extension/utility/StringLiteral.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'extension/src/openvic-extension/utility') 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; -- cgit v1.2.3-56-ga3b1