diff options
author | Andrew Morrow <acm@10gen.com> | 2013-05-28 23:45:08 -0400 |
---|---|---|
committer | Andrew Morrow <acm@10gen.com> | 2013-05-31 11:08:13 -0400 |
commit | 29f747605154a4855ce76d21cd5ecbc2fa3890a0 (patch) | |
tree | e84fe18321546c65ee661fc391e26e7db07d741f /src/mongo/bson/mutable/document-inl.h | |
parent | f844ed02b1df1b54ea96b6e902cb7ab0663612d8 (diff) | |
download | mongo-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.h | 4 |
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 |