summaryrefslogtreecommitdiff
path: root/store/source/storcach.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-05 20:54:12 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-05 22:21:49 +0000
commit4d6a509efe6bd56613b5554556d3a4f7f4cfd0d5 (patch)
tree22fc10679131c72993615d0fa634460d14a15ec8 /store/source/storcach.cxx
parent076b098ddf80fc78773d3ed97b7fd50dbcb4ebb6 (diff)
convert all remaining BOOST_STATIC_ASSERT to static_assert
and we can include a few less headers Change-Id: Id742849ff4c1c37a2b861aa3d6ab823f00ea87f8
Diffstat (limited to 'store/source/storcach.cxx')
-rw-r--r--store/source/storcach.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/store/source/storcach.cxx b/store/source/storcach.cxx
index 6ddb2db389dc..ed86b3e31d3a 100644
--- a/store/source/storcach.cxx
+++ b/store/source/storcach.cxx
@@ -20,7 +20,6 @@
#include "sal/config.h"
#include "boost/noncopyable.hpp"
-#include "boost/static_assert.hpp"
#include "storcach.hxx"
@@ -230,7 +229,7 @@ class PageCache_Impl :
{
// Representation
static size_t const theTableSize = 32;
- BOOST_STATIC_ASSERT(STORE_IMPL_ISP2(theTableSize));
+ static_assert(STORE_IMPL_ISP2(theTableSize), "must be the case");
Entry ** m_hash_table;
Entry * m_hash_table_0[theTableSize];
@@ -291,7 +290,7 @@ PageCache_Impl::PageCache_Impl (sal_uInt16 nPageSize)
m_nMissed (0)
{
static size_t const theSize = SAL_N_ELEMENTS(m_hash_table_0);
- BOOST_STATIC_ASSERT(theSize == theTableSize);
+ static_assert(theSize == theTableSize, "must be equal");
memset(m_hash_table_0, 0, sizeof(m_hash_table_0));
}