summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bsonobjbuilder.h
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-06-15 14:54:26 -0400
committerAndrew Morrow <acm@mongodb.com>2015-06-16 16:31:58 -0400
commit22dd61cfe60e05b13f9bb92aee3cb4660392435b (patch)
tree2046de28fe9e566dd9b1c023c9feec88385e480d /src/mongo/bson/bsonobjbuilder.h
parentbe88e42ef819aeb76b8625e646adf67626844c25 (diff)
downloadmongo-22dd61cfe60e05b13f9bb92aee3cb4660392435b.tar.gz
SERVER-18991 Replace all usages of boost::noncopyable with MONGO_DISALLOW_COPYING
Diffstat (limited to 'src/mongo/bson/bsonobjbuilder.h')
-rw-r--r--src/mongo/bson/bsonobjbuilder.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/bson/bsonobjbuilder.h b/src/mongo/bson/bsonobjbuilder.h
index a533284b120..4ca65d75693 100644
--- a/src/mongo/bson/bsonobjbuilder.h
+++ b/src/mongo/bson/bsonobjbuilder.h
@@ -34,7 +34,6 @@
#pragma once
-#include <boost/noncopyable.hpp>
#include <boost/static_assert.hpp>
#include <map>
#include <cmath>
@@ -57,7 +56,8 @@ namespace mongo {
/** Utility for creating a BSONObj.
See also the BSON() and BSON_ARRAY() macros.
*/
- class BSONObjBuilder : boost::noncopyable {
+ class BSONObjBuilder {
+ MONGO_DISALLOW_COPYING(BSONObjBuilder);
public:
/** @param initsize this is just a hint as to the final size of the object */
BSONObjBuilder(int initsize=512)
@@ -716,7 +716,8 @@ namespace mongo {
static bool numStrsReady; // for static init safety
};
- class BSONArrayBuilder : boost::noncopyable {
+ class BSONArrayBuilder {
+ MONGO_DISALLOW_COPYING(BSONArrayBuilder);
public:
BSONArrayBuilder() : _i(0), _b() {}
BSONArrayBuilder( BufBuilder &_b ) : _i(0), _b(_b) {}