diff options
author | Andrew Morrow <acm@10gen.com> | 2013-05-30 13:42:19 -0400 |
---|---|---|
committer | Andrew Morrow <acm@10gen.com> | 2013-05-31 13:20:21 -0400 |
commit | 88b66393ce61f1bf7bbc33064349501f39d02266 (patch) | |
tree | 2288237b576b01f567d4b0c685e1b7294e24ea5f /src/mongo/bson/mutable/const_element.h | |
parent | 9cd31fde02b3e701f5c354cbbc5a473957e155a5 (diff) | |
download | mongo-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.h | 5 |
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; }; |