Skip to content

Commit e7ccbf5

Browse files
committed
Fix compilation with visual studio
1 parent 17d88f7 commit e7ccbf5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cli/cli.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ namespace cli
685685
F fun,
686686
const std::string& desc = "unknown command"
687687
)
688-
: Command(_name), function(std::move(fun)), description(desc)
688+
: Command(_name), func(std::move(fun)), description(desc)
689689
{
690690
}
691691

@@ -697,7 +697,7 @@ namespace cli
697697
{
698698
try
699699
{
700-
auto g = [&](auto ... pars){ function( session.OutStream(), pars... ); };
700+
auto g = [&](auto ... pars){ func( session.OutStream(), pars... ); };
701701
Select<decltype(g), Args...>::Exec(g, std::next(cmdLine.begin()), cmdLine.end());
702702
}
703703
catch (boost::bad_lexical_cast &)
@@ -717,7 +717,7 @@ namespace cli
717717

718718
private:
719719

720-
const F function;
720+
const F func;
721721
const std::string description;
722722
};
723723

0 commit comments

Comments
 (0)