summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/value.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/value.cpp b/src/value.cpp
index bf75b8931b..d6c276471a 100644
--- a/src/value.cpp
+++ b/src/value.cpp
@@ -356,6 +356,11 @@ value& value::operator[](const char* key)
return (*this)[std::string(key)];
}
+value value::copy() const
+{
+ return value(tag_->clone());
+}
+
std::unique_ptr<tag>& value::get_ptr()
{
return tag_;