diff options
author | Pavel Belikov <pavel.fuchs.belikov@gmail.com> | 2017-11-12 16:45:02 +0300 |
---|---|---|
committer | Pavel Belikov <pavel.fuchs.belikov@gmail.com> | 2017-11-12 16:59:19 +0300 |
commit | a86c29be5bb206420aa7520633782c7fc6c1b4db (patch) | |
tree | ebafc5ef3313e0b1e25ddb451adf6126fe973eef /args.hxx | |
parent | add HelpParams::proglineShowFlags (diff) | |
download | args.hxx-a86c29be5bb206420aa7520633782c7fc6c1b4db.tar.xz |
add Matcher validation tests
Diffstat (limited to 'args.hxx')
-rw-r--r-- | args.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -344,7 +344,7 @@ namespace args */ template <typename Short, typename Long> Matcher(Short &&shortIn, Long &&longIn) : - shortFlags(std::begin(shortIn), std::end(shortIn)), longFlags(std::begin(longIn), std::end(longIn)) + Matcher(std::begin(shortIn), std::end(shortIn), std::begin(longIn), std::end(longIn)) {} /** Specify a mixed single initializer-list of both short and long flags @@ -360,7 +360,7 @@ namespace args * args::Matcher{"foo", 'f', 'F', "FoO"} */ Matcher(std::initializer_list<EitherFlag> in) : - shortFlags(EitherFlag::GetShort(in)), longFlags(EitherFlag::GetLong(in)) {} + Matcher(EitherFlag::GetShort(in), EitherFlag::GetLong(in)) {} Matcher(Matcher &&other) : shortFlags(std::move(other.shortFlags)), longFlags(std::move(other.longFlags)) {} |