diff --git a/include/lime/address.hpp b/include/lime/address.hpp index c18c69b..6fb1122 100644 --- a/include/lime/address.hpp +++ b/include/lime/address.hpp @@ -45,10 +45,6 @@ namespace lime [[nodiscard]] std::optional
operator-(std::size_t) const; [[nodiscard]] std::optional
operator+(std::size_t) const; - public: - [[nodiscard]] operator void *() const; - [[nodiscard]] operator std::uintptr_t() const; - public: [[nodiscard]] std::strong_ordering operator<=>(const address &) const; diff --git a/src/address.cpp b/src/address.cpp index 2d46bd1..3180e03 100644 --- a/src/address.cpp +++ b/src/address.cpp @@ -80,19 +80,9 @@ namespace lime return at(m_impl->address - amount); } - address::operator void *() const - { - return ptr(); - } - - address::operator std::uintptr_t() const - { - return addr(); - } - std::strong_ordering address::operator<=>(const address &other) const { - const auto address = static_cast(other); + const auto address = other.addr(); if (address > m_impl->address) {