aboutsummaryrefslogtreecommitdiff
path: root/args.hxx
diff options
context:
space:
mode:
authorPavel Belikov <pavel.fuchs.belikov@gmail.com>2017-11-23 18:56:27 +0300
committerPavel Belikov <pavel.fuchs.belikov@gmail.com>2017-11-23 18:56:27 +0300
commit922bc733353866719fbf5de29da23f423284d1dc (patch)
treeb67d3629772032e1983a45f3c8ad7af8f4856ea9 /args.hxx
parentMerge pull request #44 from pavel-belikov/better-value-parsing (diff)
downloadargs.hxx-922bc733353866719fbf5de29da23f423284d1dc.tar.xz
fix inclusion into multiple source files
Diffstat (limited to 'args.hxx')
-rw-r--r--args.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/args.hxx b/args.hxx
index d31cdd6..03faade 100644
--- a/args.hxx
+++ b/args.hxx
@@ -2545,18 +2545,18 @@ namespace args
}
};
- Command::RaiiSubparser::RaiiSubparser(ArgumentParser &parser_, std::vector<std::string> args_)
+ inline Command::RaiiSubparser::RaiiSubparser(ArgumentParser &parser_, std::vector<std::string> args_)
: command(parser_.SelectedCommand()), parser(std::move(args_), parser_, command, parser_.helpParams), oldSubparser(command.subparser)
{
command.subparser = &parser;
}
- Command::RaiiSubparser::RaiiSubparser(const Command &command_, const HelpParams &params_): command(command_), parser(command, params_), oldSubparser(command.subparser)
+ inline Command::RaiiSubparser::RaiiSubparser(const Command &command_, const HelpParams &params_): command(command_), parser(command, params_), oldSubparser(command.subparser)
{
command.subparser = &parser;
}
- void Subparser::Parse()
+ inline void Subparser::Parse()
{
isParsed = true;
Reset();