|
|
@@ -105,7 +105,8 @@ template <typename Impl>
|
|
|
Arguments<Impl>::Arguments(int argc, char const * const * const argv) {
|
|
|
Impl generator;
|
|
|
*this = static_cast<Arguments const &>(generator);
|
|
|
- if (argument_names.rbegin()->first != argument_names.size() - 1) {
|
|
|
+ if (argument_names.size() &&
|
|
|
+ argument_names.rbegin()->first != argument_names.size() - 1) {
|
|
|
throw IllegalPositionError("Higher positional than number recorded",
|
|
|
argument_names.rbegin()->first);
|
|
|
}
|