diff options
author | Matt Cotter <matt.cotter@mongodb.com> | 2016-09-08 17:24:07 -0400 |
---|---|---|
committer | Matt Cotter <matt.cotter@mongodb.com> | 2016-09-09 13:22:25 -0400 |
commit | 2bd286acef2fdb035f1d45253f6e6e4c24a2dc04 (patch) | |
tree | 13943305b07a3e368ca48d5b1520cfee02ce0b3f /src/mongo/util/heap_profiler.cpp | |
parent | ae280145c3c3dc770884a68885e80a282e8d50fd (diff) | |
download | mongo-2bd286acef2fdb035f1d45253f6e6e4c24a2dc04.tar.gz |
SERVER-22973 use mongo macros for static assert
Diffstat (limited to 'src/mongo/util/heap_profiler.cpp')
-rw-r--r-- | src/mongo/util/heap_profiler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/util/heap_profiler.cpp b/src/mongo/util/heap_profiler.cpp index aa012a6388e..c2410ef2734 100644 --- a/src/mongo/util/heap_profiler.cpp +++ b/src/mongo/util/heap_profiler.cpp @@ -31,6 +31,7 @@ #include "mongo/platform/basic.h" #include "mongo/base/init.h" +#include "mongo/base/static_assert.h" #include "mongo/config.h" #include "mongo/db/commands/server_status.h" #include "mongo/db/server_parameters.h" @@ -310,8 +311,8 @@ private: Hash hash() { Hash hash; - static_assert(sizeof(frames) == sizeof(FrameInfo) * kMaxFramesPerStack, - "frames array is not dense"); + MONGO_STATIC_ASSERT_MSG(sizeof(frames) == sizeof(FrameInfo) * kMaxFramesPerStack, + "frames array is not dense"); MurmurHash3_x86_32(frames.data(), numFrames * sizeof(FrameInfo), 0, &hash); return hash; } |