diff options
Diffstat (limited to 'src/ValueBase.cc')
| -rw-r--r-- | src/ValueBase.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ValueBase.cc b/src/ValueBase.cc index f1f6ede0..5c1edd35 100644 --- a/src/ValueBase.cc +++ b/src/ValueBase.cc @@ -165,7 +165,7 @@ void Dict::put(std::string key, std::unique_ptr<ValueBase> vlb) auto p = std::make_pair(std::move(key), std::move(vlb)); auto r = dict_.insert(std::move(p)); if (!r.second) { - (*r.first).second = std::move(vlb); + (*r.first).second = std::move(p.second); } } |
