diff --git a/src/Common/MemPtr.h b/src/Common/MemPtr.h index 73fcb3ef..2dc92040 100644 --- a/src/Common/MemPtr.h +++ b/src/Common/MemPtr.h @@ -98,30 +98,35 @@ class MEMPTR : MEMPTRBase return MEMPTR(this->m_value); } - sint32 operator-(const MEMPTR& ptr) noexcept requires (!std::is_void_v) + sint32 operator-(const MEMPTR& ptr) noexcept + requires(!std::is_void_v) { return static_cast(this->GetMPTR() - ptr.GetMPTR()); } - MEMPTR operator+(sint32 v) noexcept requires (!std::is_void_v) + MEMPTR operator+(sint32 v) noexcept + requires(!std::is_void_v) { // pointer arithmetic return MEMPTR(this->GetMPTR() + v * sizeof(T)); } - MEMPTR operator-(sint32 v) noexcept requires (!std::is_void_v) + MEMPTR operator-(sint32 v) noexcept + requires(!std::is_void_v) { // pointer arithmetic return MEMPTR(this->GetMPTR() - v * sizeof(T)); } - MEMPTR& operator+=(sint32 v) noexcept requires (!std::is_void_v) + MEMPTR& operator+=(sint32 v) noexcept + requires(!std::is_void_v) { m_value += v * sizeof(T); return *this; } - template requires (!std::is_void_v) + template + requires(!std::is_void_v) Q& operator*() const noexcept { return *GetPtr(); @@ -132,7 +137,8 @@ class MEMPTR : MEMPTRBase return GetPtr(); } - template requires (!std::is_void_v) + template + requires(!std::is_void_v) Q& operator[](int index) noexcept { return GetPtr()[index];