summaryrefslogtreecommitdiff
path: root/src/mongo/db/concurrency/lock_manager_defs.h
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-07-06 21:06:36 -0400
committerAndrew Morrow <acm@mongodb.com>2015-07-09 13:49:39 -0400
commit932e768dc264865d683c113e35985b78425f78d9 (patch)
tree3b0d01bb663745e9b366daef53633ca75fbf5e59 /src/mongo/db/concurrency/lock_manager_defs.h
parent7e6df189868bdb2e2b991f0733dc1486b41c69b1 (diff)
downloadmongo-932e768dc264865d683c113e35985b78425f78d9.tar.gz
SERVER-19313 Remove some obsoleted usages of boost
Diffstat (limited to 'src/mongo/db/concurrency/lock_manager_defs.h')
-rw-r--r--src/mongo/db/concurrency/lock_manager_defs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/concurrency/lock_manager_defs.h b/src/mongo/db/concurrency/lock_manager_defs.h
index 86bce16a659..1ca3f70dbe2 100644
--- a/src/mongo/db/concurrency/lock_manager_defs.h
+++ b/src/mongo/db/concurrency/lock_manager_defs.h
@@ -28,7 +28,6 @@
#pragma once
-#include <boost/static_assert.hpp>
#include <cstdint>
#include <string>
#include <limits>
@@ -173,7 +172,8 @@ const char* resourceTypeName(ResourceType resourceType);
class ResourceId {
// We only use 3 bits for the resource type in the ResourceId hash
enum { resourceTypeBits = 3 };
- BOOST_STATIC_ASSERT(ResourceTypesCount <= (1 << resourceTypeBits));
+ static_assert(ResourceTypesCount <= (1 << resourceTypeBits),
+ "ResourceTypesCount <= (1 << resourceTypeBits)");
public:
/**
@@ -236,7 +236,7 @@ private:
#ifndef MONGO_CONFIG_DEBUG_BUILD
// Treat the resource ids as 64-bit integers in release mode in order to ensure we do
// not spend too much time doing comparisons for hashing.
-BOOST_STATIC_ASSERT(sizeof(ResourceId) == sizeof(uint64_t));
+static_assert(sizeof(ResourceId) == sizeof(uint64_t), "sizeof(ResourceId) == sizeof(uint64_t)");
#endif