summaryrefslogtreecommitdiff
path: root/src/mongo/db/hasher.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/db/hasher.h
parentbe88e42ef819aeb76b8625e646adf67626844c25 (diff)
downloadmongo-22dd61cfe60e05b13f9bb92aee3cb4660392435b.tar.gz
SERVER-18991 Replace all usages of boost::noncopyable with MONGO_DISALLOW_COPYING
Diffstat (limited to 'src/mongo/db/hasher.h')
-rw-r--r--src/mongo/db/hasher.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mongo/db/hasher.h b/src/mongo/db/hasher.h
index 98d6a42ee03..e5bbb39d116 100644
--- a/src/mongo/db/hasher.h
+++ b/src/mongo/db/hasher.h
@@ -36,8 +36,6 @@
#include "mongo/platform/basic.h"
-#include <boost/noncopyable.hpp>
-
#include "mongo/bson/bsonelement.h"
#include "mongo/util/md5.hpp"
@@ -46,7 +44,8 @@ namespace mongo {
typedef int HashSeed;
typedef unsigned char HashDigest[16];
- class Hasher : private boost::noncopyable {
+ class Hasher {
+ MONGO_DISALLOW_COPYING(Hasher);
public:
explicit Hasher( HashSeed seed );
@@ -64,7 +63,8 @@ namespace mongo {
HashSeed _seed;
};
- class HasherFactory : private boost::noncopyable {
+ class HasherFactory {
+ MONGO_DISALLOW_COPYING(HasherFactory);
public:
/* Eventually this may be a more sophisticated factory
* for creating other hashers, but for now use MD5.
@@ -77,7 +77,8 @@ namespace mongo {
HasherFactory();
};
- class BSONElementHasher : private boost::noncopyable {
+ class BSONElementHasher {
+ MONGO_DISALLOW_COPYING(BSONElementHasher);
public:
/* The hash function we use can be given a seed, to effectively randomize it