Skip to content

Commit 32b767f

Browse files
committed
Fix compile error
1 parent 5467d68 commit 32b767f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Argo/ArgoMetaParse.cc

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module;
33
#include "Argo/ArgoMacros.hh"
44

55
export module Argo:MetaParse;
6+
67
import :std_module;
78
import :Arg;
89
import :TypeTraits;
@@ -23,7 +24,7 @@ template <class SubParsers>
2324
requires(is_tuple_v<SubParsers>)
2425
ARGO_ALWAYS_INLINE constexpr auto MetaParse(SubParsers sub_parsers, int index,
2526
int argc, char** argv) -> bool {
26-
return apply(
27+
return std::apply(
2728
[&](auto&&... s) ARGO_ALWAYS_INLINE {
2829
std::int64_t idx = -1;
2930
return (... || (idx++, idx == index &&
@@ -37,7 +38,7 @@ template <class SubParsers>
3738
ARGO_ALWAYS_INLINE constexpr auto ParserIndex(SubParsers sub_parsers, //
3839
std::string_view key)
3940
-> std::int64_t {
40-
return apply(
41+
return std::apply(
4142
[&](auto&&... s) ARGO_ALWAYS_INLINE {
4243
std::int64_t index = -1;
4344
bool found = (... || (index++, s.name.getKey() == key));

0 commit comments

Comments
 (0)