diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-11-28 03:36:56 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-11-28 03:36:56 -0500 |
commit | 108401044ce1d7a2ee23a398d4b46d4f602733a6 (patch) | |
tree | 601bcb9047c97206bc60c5eb0df92233530abc0f /bson/util | |
parent | 2016fe2e3da8becf4a463ca8464c803efa99e773 (diff) | |
download | mongo-108401044ce1d7a2ee23a398d4b46d4f602733a6.tar.gz |
const
Diffstat (limited to 'bson/util')
-rw-r--r-- | bson/util/builder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bson/util/builder.h b/bson/util/builder.h index 5029a4fe045..23d8939c08f 100644 --- a/bson/util/builder.h +++ b/bson/util/builder.h @@ -232,7 +232,7 @@ namespace mongo { void reset( int maxSize = 0 ) { _buf.reset( maxSize ); } - std::string str() { return std::string(_buf.data, _buf.l); } + std::string str() const { return std::string(_buf.data, _buf.l); } private: BufBuilder _buf; |