Skip to content

Commit

Permalink
Resolve -Wdeprecated-this-capture
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroMemes committed Oct 9, 2024
1 parent e331ab3 commit 403fac8
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 @@ -29,7 +29,7 @@ namespace hat {
[[nodiscard]] constexpr Int read(size_t offset) const {
if LIBHAT_IF_CONSTEVAL {
constexpr size_t sz = sizeof(Int);
return std::bit_cast<Int>([=]<size_t... Index>(std::index_sequence<Index...>) {
return std::bit_cast<Int>([=, this]<size_t... Index>(std::index_sequence<Index...>) {
return std::array<T, sz>{this->result + offset + Index...};
}(std::make_index_sequence<sz>{}));
} else {
Expand Down

0 comments on commit 403fac8

Please sign in to comment.