diff options
author | Taylor C. Richberger <Taywee@gmx.com> | 2016-06-02 17:08:56 -0600 |
---|---|---|
committer | Taylor C. Richberger <Taywee@gmx.com> | 2016-06-02 17:08:56 -0600 |
commit | 13e4f40ec3e1535f46c2f3293981042af1e2776f (patch) | |
tree | b6b39df7f8d9926049b3c0fb90ba2541f035ca13 /args.hxx | |
parent | improve readability by culling explicit matcher construction (diff) | |
download | args.hxx-13e4f40ec3e1535f46c2f3293981042af1e2776f.tar.xz |
allow set use4.1.5
Diffstat (limited to 'args.hxx')
-rw-r--r-- | args.hxx | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1435,8 +1435,9 @@ namespace args virtual void ParseValue(const std::string &value) override { - values.emplace_back(); - Reader(name, value, values.back()); + T v; + Reader(name, value, v); + values.insert(std::end(values), v); } /** Get the values @@ -1610,8 +1611,9 @@ namespace args virtual void ParseValue(const std::string &value) override { - values.emplace_back(); - Reader(name, value, values.back()); + T v; + Reader(name, value, v); + values.insert(std::end(values), v); matched = true; } |