summaryrefslogtreecommitdiff
path: root/src/mongo/bson/mutable/document-inl.h
diff options
context:
space:
mode:
authorAndrew Morrow <acm@10gen.com>2013-05-28 23:45:08 -0400
committerAndrew Morrow <acm@10gen.com>2013-05-31 11:08:13 -0400
commit29f747605154a4855ce76d21cd5ecbc2fa3890a0 (patch)
treee84fe18321546c65ee661fc391e26e7db07d741f /src/mongo/bson/mutable/document-inl.h
parentf844ed02b1df1b54ea96b6e902cb7ab0663612d8 (diff)
downloadmongo-29f747605154a4855ce76d21cd5ecbc2fa3890a0.tar.gz
SERVER-8046 Add utilities to simplify debugging and testing with mutable
Diffstat (limited to 'src/mongo/bson/mutable/document-inl.h')
-rw-r--r--src/mongo/bson/mutable/document-inl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/bson/mutable/document-inl.h b/src/mongo/bson/mutable/document-inl.h
index 63dea69dac8..5d6de21554f 100644
--- a/src/mongo/bson/mutable/document-inl.h
+++ b/src/mongo/bson/mutable/document-inl.h
@@ -47,5 +47,9 @@ namespace mutablebson {
return _root;
}
+ inline std::string Document::toString() const {
+ return getObject().toString();
+ }
+
} // namespace mutablebson
} // namespace mongo