summaryrefslogtreecommitdiff
path: root/src/mongo/bson/mutable/const_element.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.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.h')
-rw-r--r--src/mongo/bson/mutable/const_element.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/bson/mutable/const_element.h b/src/mongo/bson/mutable/const_element.h
index 1253a0566eb..553e2c89079 100644
--- a/src/mongo/bson/mutable/const_element.h
+++ b/src/mongo/bson/mutable/const_element.h
@@ -93,6 +93,11 @@ namespace mutablebson {
friend bool operator==(const ConstElement&, const ConstElement&);
private:
+ friend class Document;
+
+ template<typename Builder>
+ inline void writeElement(Builder* builder, const StringData* fieldName = NULL) const;
+
Element _basis;
};