Skip to content

Commit

Permalink
Fix usage of C++23 extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroMemes committed Oct 9, 2024
1 parent 16be213 commit e222e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/libhat/Scanner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace hat {
template<std::integral Int>
[[nodiscard]] constexpr Int read(size_t offset) const {
if LIBHAT_IF_CONSTEVAL {
static constexpr size_t sz = sizeof(Int);
constexpr size_t sz = sizeof(Int);
return std::bit_cast<Int>([=]<size_t... Index>(std::index_sequence<Index...>) {
return std::array<T, sz>{this->result + offset + Index...};
}(std::make_index_sequence<sz>{}));
Expand Down

0 comments on commit e222e2f

Please sign in to comment.