summaryrefslogtreecommitdiff
path: root/src/mongo/db/concurrency/fast_map_noalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/concurrency/fast_map_noalloc.h')
-rw-r--r--src/mongo/db/concurrency/fast_map_noalloc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/concurrency/fast_map_noalloc.h b/src/mongo/db/concurrency/fast_map_noalloc.h
index eef9f4ceebe..8d862d7ac89 100644
--- a/src/mongo/db/concurrency/fast_map_noalloc.h
+++ b/src/mongo/db/concurrency/fast_map_noalloc.h
@@ -28,6 +28,7 @@
#pragma once
+#include "mongo/base/static_assert.h"
#include "mongo/platform/unordered_map.h"
#include "mongo/util/assert_util.h"
@@ -233,8 +234,8 @@ public:
private:
// Empty and very large maps do not make sense since there will be no performance gain, so
// disallow them.
- static_assert(PreallocCount > 0, "PreallocCount > 0");
- static_assert(PreallocCount < 32, "PreallocCount < 32");
+ MONGO_STATIC_ASSERT(PreallocCount > 0);
+ MONGO_STATIC_ASSERT(PreallocCount < 32);
// Iterator accesses the map directly
friend class IteratorImpl<FastMapNoAlloc<KeyType, ValueType, PreallocCount>, ValueType>;