diff options
author | Taylor C. Richberger <Taywee@gmx.com> | 2016-05-08 21:43:28 -0600 |
---|---|---|
committer | Taylor C. Richberger <Taywee@gmx.com> | 2016-05-08 21:43:28 -0600 |
commit | ab7cdaadfb77bad1af5c3789474857edb45f5d60 (patch) | |
tree | e966719381ce43cd868137d81f45eec1c00aa34f | |
parent | change README syntax (diff) | |
download | args.hxx-ab7cdaadfb77bad1af5c3789474857edb45f5d60.tar.xz |
small improvement
-rw-r--r-- | args.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -981,10 +981,10 @@ namespace args ArgFlagBase *argbase = dynamic_cast<ArgFlagBase *>(base); if (argbase) { - argchunk.erase(std::begin(argchunk), ++argit); - if (!argchunk.empty()) + const std::string arg(++argit, std::end(argchunk)); + if (!arg.empty()) { - argbase->ParseArg(argchunk); + argbase->ParseArg(arg); } else { ++it; |