summaryrefslogtreecommitdiff
path: root/src/parameters_parser.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-04-03 18:51:40 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-04-03 18:51:40 +0200
commit0395f3b9fcd1ebd96bc011c2cdd8327b29854019 (patch)
tree20f9f75766aeafd49366a7d05d659380c02f3f25 /src/parameters_parser.hh
parent161fab13f788445d74766ad2924454517e38981a (diff)
fix compilation with clang++
Diffstat (limited to 'src/parameters_parser.hh')
-rw-r--r--src/parameters_parser.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parameters_parser.hh b/src/parameters_parser.hh
index 98d138b8..ca159922 100644
--- a/src/parameters_parser.hh
+++ b/src/parameters_parser.hh
@@ -29,6 +29,7 @@ struct wrong_argument_count : runtime_error
wrong_argument_count() : runtime_error("wrong argument count") {}
};
+using OptionMap = std::unordered_map<String, bool>;
// ParameterParser provides tools to parse command parameters.
// There are 3 types of parameters:
@@ -55,7 +56,7 @@ struct ParametersParser
// they are understood as string options, else they are understood as
// boolean option.
ParametersParser(const ParameterList& params,
- std::unordered_map<String, bool> options,
+ OptionMap options,
Flags flags = Flags::None,
size_t min_positionals = 0,
size_t max_positionals = -1);