Skip to content

Commit

Permalink
XXX: Try constexpr fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jezurko committed May 16, 2023
1 parent d1e375f commit 41254a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/vast/repl/command.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ namespace vast::repl
if constexpr (std::tuple_size_v< params_storage > == 0) {
VAST_UNREACHABLE(("unknown param name " + std::string(name)).c_str());
} else {
using current = typename std::tuple_element< 0, params_storage >::type;
//using current = ;

if constexpr (current::param_name == name) {
if constexpr ((std::tuple_element< 0, params_storage >::type::param_name) == name) {
return util::head(params).value;
} else {
return get_param< name >(util::tail(params));
Expand Down

0 comments on commit 41254a7

Please sign in to comment.