diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-05 20:54:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-05 22:21:49 +0000 |
commit | 4d6a509efe6bd56613b5554556d3a4f7f4cfd0d5 (patch) | |
tree | 22fc10679131c72993615d0fa634460d14a15ec8 /cppu/source | |
parent | 076b098ddf80fc78773d3ed97b7fd50dbcb4ebb6 (diff) |
convert all remaining BOOST_STATIC_ASSERT to static_assert
and we can include a few less headers
Change-Id: Id742849ff4c1c37a2b861aa3d6ab823f00ea87f8
Diffstat (limited to 'cppu/source')
-rw-r--r-- | cppu/source/uno/data.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
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 ); |