diff options
author | Andrew Morrow <acm@mongodb.com> | 2015-07-06 21:06:36 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2015-07-09 13:49:39 -0400 |
commit | 932e768dc264865d683c113e35985b78425f78d9 (patch) | |
tree | 3b0d01bb663745e9b366daef53633ca75fbf5e59 /src/mongo/db/concurrency/lock_manager_defs.h | |
parent | 7e6df189868bdb2e2b991f0733dc1486b41c69b1 (diff) | |
download | mongo-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.h | 6 |
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 |