~satchmo/libvmm

310520dc1efa2a784c557fc4771e777c8b28096c — Jason Phan 4 months ago 6cec77b
memory: Make GuestAddress' type aliases public
1 files changed, 5 insertions(+), 7 deletions(-)

M vmm/memory/detail/guest.hpp
M vmm/memory/detail/guest.hpp => vmm/memory/detail/guest.hpp +5 -7
@@ 25,14 25,12 @@ namespace vmm::memory::detail {
// the guest is 32-bit or 64-bit.
class GuestAddress : public Address<GuestAddress, uint64_t>
{
    using value_type = GuestAddress;
    using size_type = uint64_t;
    using reference = value_type&;
    using const_reference = const value_type&;

    private:
        size_type m_addr{};
    public:
        using value_type = GuestAddress;
        using size_type = uint64_t;
        using reference = value_type&;
        using const_reference = const value_type&;

        explicit GuestAddress(size_type addr=0) noexcept : m_addr{addr} {}

        auto data() const noexcept -> size_type override;