Skip to content

Commit

Permalink
Fix bug in clef evaluator
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoemi09 authored and Wentzell committed Jan 22, 2024
1 parent 8a1db12 commit 967f4a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion c++/nda/clef/clef.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ namespace nda::clef {

FORCEINLINE decltype(auto) operator()(placeholder<N>, pair<Is, T> const &...pairs) const {
if constexpr (not is_lazy) { // N is one of the Is
return std::get<N_position>(std::tie(pairs...)).rhs;
auto const& res = std::get<N_position>(std::tie(pairs...)).rhs;
return res;
} else { // N is not one of the Is
return placeholder<N>{};
}
Expand Down

0 comments on commit 967f4a1

Please sign in to comment.