Skip to content

Commit

Permalink
Fix missing header include
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroMemes committed Sep 21, 2024
1 parent 7630273 commit 87c336c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/libhat/Access.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include <cstdint>
#include <concepts>

#include "Traits.hpp"
Expand All @@ -9,6 +10,6 @@ namespace hat {
template<typename MemberType, typename Base>
auto& member_at(Base* ptr, std::integral auto offset) {
using Ret = hat::constness_as_t<MemberType, Base>;
return *reinterpret_cast<Ret*>(reinterpret_cast<uintptr_t>(ptr) + offset);
return *reinterpret_cast<Ret*>(reinterpret_cast<std::uintptr_t>(ptr) + offset);
}
}

0 comments on commit 87c336c

Please sign in to comment.