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 /codemaker | |
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 'codemaker')
-rw-r--r-- | codemaker/source/javamaker/classfile.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/codemaker/source/javamaker/classfile.cxx b/codemaker/source/javamaker/classfile.cxx index 6673b2fa07a6..2c9f35c12d59 100644 --- a/codemaker/source/javamaker/classfile.cxx +++ b/codemaker/source/javamaker/classfile.cxx @@ -24,7 +24,6 @@ #include "codemaker/options.hxx" #include "codemaker/unotype.hxx" -#include "boost/static_assert.hpp" #include "osl/diagnose.h" #include "rtl/string.h" #include "rtl/string.hxx" @@ -96,9 +95,9 @@ void writeU4(FileStream & file, sal_uInt32 data) { void writeStream(FileStream & file, std::vector< unsigned char > const & stream) { std::vector< unsigned char >::size_type n = stream.size(); - BOOST_STATIC_ASSERT( + static_assert( sizeof (std::vector< unsigned char >::size_type) - <= sizeof (sal_uInt64)); + <= sizeof (sal_uInt64), "must be at most equal in size"); // both unsigned integral, so sizeof is a practically sufficient // approximation of std::numeric_limits<T1>::max() <= // std::numeric_limits<T2>::max() |