Skip to content

Commit c88793b

Browse files
committed
Fix CMemory::Set method
1 parent 86418f1 commit c88793b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/dynlibutils/memaddr.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class CMemory
132132
/// Access methods (setters).
133133
constexpr void* SetPtr(void* pNew) noexcept { return m_ptr = pNew; }
134134
constexpr std::ptrdiff_t SetAddr(std::ptrdiff_t nNew) noexcept { return m_addr = nNew; }
135-
template<typename T> constexpr T &Set(const T &other) noexcept { return &GetRef<T>() = other; }
135+
template<typename T> constexpr T &Set(const T &other) noexcept { return GetRef<T>() = other; }
136136

137137
// Checks methods.
138138
bool IsValid() const noexcept { return GetPtr() != nullptr; }

0 commit comments

Comments
 (0)