summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bsonobjiterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/bsonobjiterator.h')
-rw-r--r--src/mongo/bson/bsonobjiterator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/bson/bsonobjiterator.h b/src/mongo/bson/bsonobjiterator.h
index e210ca22e13..87f53c99e5e 100644
--- a/src/mongo/bson/bsonobjiterator.h
+++ b/src/mongo/bson/bsonobjiterator.h
@@ -20,6 +20,7 @@
#include <boost/preprocessor/cat.hpp> // like the ## operator but works with __LINE__
#include "mongo/bson/bsonobj.h"
+#include "mongo/base/disallow_copying.h"
namespace mongo {
@@ -96,6 +97,7 @@ namespace mongo {
/** Base class implementing ordered iteration through BSONElements. */
class BSONIteratorSorted {
+ MONGO_DISALLOW_COPYING(BSONIteratorSorted);
public:
~BSONIteratorSorted() {
verify( _fields );