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/db/pipeline/value_internal.h | |
parent | ae280145c3c3dc770884a68885e80a282e8d50fd (diff) | |
download | mongo-2bd286acef2fdb035f1d45253f6e6e4c24a2dc04.tar.gz |
SERVER-22973 use mongo macros for static assert
Diffstat (limited to 'src/mongo/db/pipeline/value_internal.h')
-rw-r--r-- | src/mongo/db/pipeline/value_internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/value_internal.h b/src/mongo/db/pipeline/value_internal.h index fe34b97e0a7..51d76e6cf73 100644 --- a/src/mongo/db/pipeline/value_internal.h +++ b/src/mongo/db/pipeline/value_internal.h @@ -32,6 +32,7 @@ #include <boost/config.hpp> #include <boost/intrusive_ptr.hpp> +#include "mongo/base/static_assert.h" #include "mongo/bson/bsonmisc.h" #include "mongo/bson/bsonobj.h" #include "mongo/bson/bsontypes.h" @@ -358,6 +359,6 @@ public: long long i64[2]; }; }; -static_assert(sizeof(ValueStorage) == 16, "sizeof(ValueStorage) == 16"); +MONGO_STATIC_ASSERT(sizeof(ValueStorage) == 16); #pragma pack() } |