summaryrefslogtreecommitdiff
path: root/src/mongo/bson/mutable/const_element-inl.h
diff options
context:
space:
mode:
authorAndrew Morrow <acm@10gen.com>2013-05-30 13:42:19 -0400
committerAndrew Morrow <acm@10gen.com>2013-05-31 13:20:21 -0400
commit88b66393ce61f1bf7bbc33064349501f39d02266 (patch)
tree2288237b576b01f567d4b0c685e1b7294e24ea5f /src/mongo/bson/mutable/const_element-inl.h
parent9cd31fde02b3e701f5c354cbbc5a473957e155a5 (diff)
downloadmongo-88b66393ce61f1bf7bbc33064349501f39d02266.tar.gz
SERVER-8046 Add support for cloning elements to mutable
Diffstat (limited to 'src/mongo/bson/mutable/const_element-inl.h')
-rw-r--r--src/mongo/bson/mutable/const_element-inl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/bson/mutable/const_element-inl.h b/src/mongo/bson/mutable/const_element-inl.h
index 2e928ce53ac..8da6fc1b8f3 100644
--- a/src/mongo/bson/mutable/const_element-inl.h
+++ b/src/mongo/bson/mutable/const_element-inl.h
@@ -176,6 +176,11 @@ namespace mutablebson {
return _basis.toString();
}
+ template<typename Builder>
+ inline void ConstElement::writeElement(Builder* builder, const StringData* fieldName) const {
+ return _basis.writeElement(builder, fieldName);
+ }
+
inline bool operator==(const ConstElement& l, const ConstElement& r) {
return l._basis == r._basis;
}
@@ -200,5 +205,6 @@ namespace mutablebson {
return !(l == r);
}
+
} // namespace mutablebson
} // namespace mongo