Skip to content

Commit f4a43d6

Browse files
committed
CMemory: remove std::uintptr_t operator
1 parent 637c830 commit f4a43d6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

include/dynlibutils/memaddr.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ class CMemory
9696
constexpr CMemory(void* ptr = nullptr) : m_ptr(ptr) {}
9797

9898
/// Conversion operators.
99-
constexpr operator const void*() const noexcept { return GetPtr(); }
100-
constexpr operator std::uintptr_t() const noexcept { return GetAddr(); }
99+
constexpr operator void*() const noexcept { return GetPtr(); }
101100

102101
/// Compare operators.
103102
bool operator==(const CMemory right) const noexcept { return m_addr == right.m_addr; }

0 commit comments

Comments
 (0)