Skip to content

Commit

Permalink
Add missing constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
elshize committed Apr 10, 2024
1 parent 7710068 commit 3d81172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pisa/block_inverted_index.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class BlockInvertedIndexCursor {
&& concepts::SortedPostingCursor<BlockInvertedIndexCursor>)
);

if (profiling == Profiling::On) {
if constexpr (profiling == Profiling::On) {
m_profiler = block_profiler::open_list(term_id, m_blocks);
}

Expand Down

0 comments on commit 3d81172

Please sign in to comment.