From 4d6a509efe6bd56613b5554556d3a4f7f4cfd0d5 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 5 Feb 2015 20:54:12 +0000 Subject: convert all remaining BOOST_STATIC_ASSERT to static_assert and we can include a few less headers Change-Id: Id742849ff4c1c37a2b861aa3d6ab823f00ea87f8 --- store/source/storcach.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'store/source/storcach.cxx') 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)); } -- cgit