summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tag_compound.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tag_compound.cpp b/src/tag_compound.cpp
index 4c6c03264e..4ee38c4412 100644
--- a/src/tag_compound.cpp
+++ b/src/tag_compound.cpp
@@ -57,6 +57,11 @@ std::pair<tag_compound::iterator, bool> tag_compound::put(const std::string& key
}
}
+std::pair<tag_compound::iterator, bool> tag_compound::insert(const std::string& key, value&& val)
+{
+ return tags.emplace(key, std::move(val));
+}
+
bool tag_compound::erase(const std::string& key)
{
return tags.erase(key) != 0;