Skip to content

Commit

Permalink
fix: relocation assignment (#79)
Browse files Browse the repository at this point in the history
- add assignment operator to `REL::Relocation` for `uintptr_t`
  • Loading branch information
qudix authored Sep 20, 2023
1 parent 494a60f commit f816b6c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CommonLibSF/include/REL/Relocation.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ namespace REL
_address(a_id.address() + a_offset)
{}

constexpr auto& operator=(const std::uintptr_t a_addr)
{
_address = a_addr;
return *this;
}

[[nodiscard]] constexpr value_type get() const //
noexcept(std::is_nothrow_copy_constructible_v<value_type>)
{
Expand Down

0 comments on commit f816b6c

Please sign in to comment.