Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions include/hibf/misc/bit_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -602,11 +602,10 @@ class bit_vector :
//!\brief Checks if any bit is set to `true`.
constexpr bool any() const noexcept
{
constexpr chunk_type mask = static_cast<chunk_type>(0);
return std::ranges::any_of(*as_base(),
[](chunk_type const & chunk)
{
return chunk | mask;
return chunk;
});
}

Expand Down