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 --- cppu/source/uno/data.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'cppu/source') diff --git a/cppu/source/uno/data.cxx b/cppu/source/uno/data.cxx index 6b831000a4b8..5a950444024a 100644 --- a/cppu/source/uno/data.cxx +++ b/cppu/source/uno/data.cxx @@ -31,9 +31,6 @@ #include "assign.hxx" #include "eq.hxx" -#include "boost/static_assert.hpp" - - using namespace ::cppu; using namespace ::osl; @@ -488,10 +485,10 @@ public: }; BinaryCompatible_Impl::BinaryCompatible_Impl() { - BOOST_STATIC_ASSERT( ((sal_Bool) true) == sal_True && - (1 != 0) == sal_True ); - BOOST_STATIC_ASSERT( ((sal_Bool) false) == sal_False && - (1 == 0) == sal_False ); + static_assert( ((sal_Bool) true) == sal_True && + (1 != 0) == sal_True, "must be binary compatible" ); + static_assert( ((sal_Bool) false) == sal_False && + (1 == 0) == sal_False, "must be binary compatible" ); #ifdef MAX_ALIGNMENT_4 // max alignment is 4 BINTEST_VERIFYOFFSET( AlignSize_Impl, dDouble, 4 ); -- cgit v1.2.3