diff options
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() |