Skip to content

Commit 67f156e

Browse files
committed
CMemory: remove const from void* operator
1 parent f4a43d6 commit 67f156e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

include/dynlibutils/memaddr.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ class CMemory
9797

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

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

0 commit comments

Comments
 (0)