aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Saraev <stefan@saraev.ca>2016-01-31 19:59:37 +0200
committerStefan Saraev <stefan@saraev.ca>2016-01-31 19:59:37 +0200
commit51c95752cd128c9eb88188647fa3b59d03447883 (patch)
treec82b6457722db3d4939ca924b69476eab3bf9233 /lib
parentc87ac135a81c77ac0a4b00ab2ed4af065400e0ca (diff)
boost/sha1: cleanup usage of boost/static_assert
Diffstat (limited to 'lib')
-rw-r--r--lib/boost/uuid/sha1.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/boost/uuid/sha1.hpp b/lib/boost/uuid/sha1.hpp
index f160e3f919..e2a0d54565 100644
--- a/lib/boost/uuid/sha1.hpp
+++ b/lib/boost/uuid/sha1.hpp
@@ -16,7 +16,6 @@
#ifndef BOOST_UUID_SHA1_H
#define BOOST_UUID_SHA1_H
-#include <boost/static_assert.hpp>
#include <cstddef>
#ifdef BOOST_NO_STDC_NAMESPACE
@@ -29,8 +28,8 @@ namespace boost {
namespace uuids {
namespace detail {
-BOOST_STATIC_ASSERT(sizeof(unsigned char)*8 == 8);
-BOOST_STATIC_ASSERT(sizeof(unsigned int)*8 == 32);
+static_assert(sizeof(unsigned char)*8 == 8, "Invalid sizeof(unsigned char)");
+static_assert(sizeof(unsigned int)*8 == 32, "Invalid sizeof(unsigned int)");
inline unsigned int left_rotate(unsigned int x, std::size_t n)
{
@@ -205,4 +204,4 @@ inline void sha1::get_digest(digest_type digest)
}}} // namespace boost::uuids::detail
-#endif \ No newline at end of file
+#endif