summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbmessage.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/dbmessage.h
parent7e6df189868bdb2e2b991f0733dc1486b41c69b1 (diff)
downloadmongo-932e768dc264865d683c113e35985b78425f78d9.tar.gz
SERVER-19313 Remove some obsoleted usages of boost
Diffstat (limited to 'src/mongo/db/dbmessage.h')
-rw-r--r--src/mongo/db/dbmessage.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/dbmessage.h b/src/mongo/db/dbmessage.h
index 795bdf75b90..73c30f09bac 100644
--- a/src/mongo/db/dbmessage.h
+++ b/src/mongo/db/dbmessage.h
@@ -192,7 +192,7 @@ private:
class Value : public EncodedValueStorage<Layout, ConstView, View> {
public:
Value() {
- BOOST_STATIC_ASSERT(sizeof(Value) == sizeof(Layout));
+ static_assert(sizeof(Value) == sizeof(Layout), "sizeof(Value) == sizeof(Layout)");
}
Value(ZeroInitTag_t zit) : EncodedValueStorage<Layout, ConstView, View>(zit) {}
@@ -207,7 +207,7 @@ public:
*/
class DbMessage {
// Assume sizeof(int) == 4 bytes
- BOOST_STATIC_ASSERT(sizeof(int) == 4);
+ static_assert(sizeof(int) == 4, "sizeof(int) == 4");
public:
// Note: DbMessage constructor reads the first 4 bytes and stores it in reserved