Skip to content

Commit 6c0e410

Browse files
committed
Use C++11 features for two boost remains
1 parent d42b64a commit 6c0e410

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/portable_archive/portable_iarchive.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "portable_archive_includes.hpp"
44
#include "slimarchive.hpp"
55
#include <istream>
6+
#include <limits.h>
67

78

89
namespace eos {
@@ -193,8 +194,8 @@ class portable_iarchive : public portable_iprimitive
193194
// after reading the note above you still might decide to
194195
// deactivate this static assert and try if it works out.
195196
typename traits::bits bits;
196-
BOOST_STATIC_ASSERT(sizeof(bits) == sizeof(T));
197-
BOOST_STATIC_ASSERT(std::numeric_limits<T>::is_iec559);
197+
static_assert(sizeof(bits) == sizeof(T));
198+
static_assert(std::numeric_limits<T>::is_iec559);
198199

199200
load(bits);
200201
traits::set_bits(t, bits);

0 commit comments

Comments
 (0)