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 3b7296d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/vast/repl/command.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ namespace vast::repl
} else {
using current = typename std::tuple_element< 0, params_storage >::type;

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

0 comments on commit 3b7296d

Please sign in to comment.