From e4b99f5d445903e1309c301cc327d2dfb23d8d71 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 9 Mar 2013 12:49:26 +0100 Subject: Use BOOST_STATIC_ASSERT Change-Id: Ib9dc2541c3bf72ddd6094331297a91352138e5af --- store/source/storcach.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'store/source/storcach.cxx') diff --git a/store/source/storcach.cxx b/store/source/storcach.cxx index e07aa7f1791c..481177e0c831 100644 --- a/store/source/storcach.cxx +++ b/store/source/storcach.cxx @@ -17,6 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include "sal/config.h" + +#include "boost/static_assert.hpp" #include "storcach.hxx" @@ -256,7 +259,7 @@ class PageCache_Impl : /** Representation. */ static size_t const theTableSize = 32; - STORE_STATIC_ASSERT(STORE_IMPL_ISP2(theTableSize)); + BOOST_STATIC_ASSERT(STORE_IMPL_ISP2(theTableSize)); Entry ** m_hash_table; Entry * m_hash_table_0[theTableSize]; @@ -330,7 +333,7 @@ PageCache_Impl::PageCache_Impl (sal_uInt16 nPageSize) m_nMissed (0) { static size_t const theSize = SAL_N_ELEMENTS(m_hash_table_0); - STORE_STATIC_ASSERT(theSize == theTableSize); + BOOST_STATIC_ASSERT(theSize == theTableSize); memset(m_hash_table_0, 0, sizeof(m_hash_table_0)); } -- cgit