Remove unneeded ParameterDesc constructor

With C++14, we can use aggregate initialization and default values
together.
This commit is contained in:
Maxime Coste 2017-09-01 16:58:52 +07:00
parent 9672e9219d
commit 6d0016f89c

View File

@ -55,12 +55,6 @@ struct ParameterDesc
}; };
friend constexpr bool with_bit_ops(Meta::Type<Flags>) { return true; } friend constexpr bool with_bit_ops(Meta::Type<Flags>) { return true; }
ParameterDesc() = default;
ParameterDesc(SwitchMap switches, Flags flags = Flags::None,
size_t min_positionals = 0, size_t max_positionals = -1)
: switches(std::move(switches)), flags(flags),
min_positionals(min_positionals), max_positionals(max_positionals) {}
SwitchMap switches; SwitchMap switches;
Flags flags = Flags::None; Flags flags = Flags::None;
size_t min_positionals = 0; size_t min_positionals = 0;