summaryrefslogtreecommitdiff
path: root/bson
diff options
context:
space:
mode:
authorDwight <dwight@10gen.com>2011-06-27 17:45:31 -0400
committerDwight <dwight@10gen.com>2011-06-27 17:45:31 -0400
commit01e780019a472045bd2dc09ea0ae759d35359c4d (patch)
tree07e4d84b9abdfa185a70f9dd5fb5aa3d3e3f5d72 /bson
parentb0ed0dcee4d96729e87e8d48e5f9c8738a8c122f (diff)
downloadmongo-01e780019a472045bd2dc09ea0ae759d35359c4d.tar.gz
one more v1 index fix
Diffstat (limited to 'bson')
-rw-r--r--bson/bsonobjiterator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bson/bsonobjiterator.h b/bson/bsonobjiterator.h
index 69958cb6331..0d2344e002e 100644
--- a/bson/bsonobjiterator.h
+++ b/bson/bsonobjiterator.h
@@ -26,6 +26,8 @@ namespace mongo {
Note each BSONObj ends with an EOO element: so you will get more() on an empty
object, although next().eoo() will be true.
+ The BSONObj must stay in scope for the duration of the iterator's execution.
+
todo: we may want to make a more stl-like iterator interface for this
with things like begin() and end()
*/