aboutsummaryrefslogtreecommitdiff
path: root/args.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'args.hxx')
-rw-r--r--args.hxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/args.hxx b/args.hxx
index e0d6f54..dcfa235 100644
--- a/args.hxx
+++ b/args.hxx
@@ -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;
}