Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
gen740 committed Jan 26, 2024
1 parent 5467d68 commit 32b767f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Argo/ArgoMetaParse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module;
#include "Argo/ArgoMacros.hh"

export module Argo:MetaParse;

import :std_module;
import :Arg;
import :TypeTraits;
Expand All @@ -23,7 +24,7 @@ template <class SubParsers>
requires(is_tuple_v<SubParsers>)
ARGO_ALWAYS_INLINE constexpr auto MetaParse(SubParsers sub_parsers, int index,
int argc, char** argv) -> bool {
return apply(
return std::apply(
[&](auto&&... s) ARGO_ALWAYS_INLINE {
std::int64_t idx = -1;
return (... || (idx++, idx == index &&
Expand All @@ -37,7 +38,7 @@ template <class SubParsers>
ARGO_ALWAYS_INLINE constexpr auto ParserIndex(SubParsers sub_parsers, //
std::string_view key)
-> std::int64_t {
return apply(
return std::apply(
[&](auto&&... s) ARGO_ALWAYS_INLINE {
std::int64_t index = -1;
bool found = (... || (index++, s.name.getKey() == key));
Expand Down

0 comments on commit 32b767f

Please sign in to comment.