diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-09-24 10:08:44 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-09-24 10:08:44 -0500 |
commit | ee6e84962721b0a47e2aea4f9cbdb6e796332441 (patch) | |
tree | 1f51a24f62ed6aa8d937c5183a669f0a85b2188b /src/crypto | |
parent | Merge pull request #5875 (diff) | |
parent | Make null hash constants constexpr (diff) | |
download | monero-ee6e84962721b0a47e2aea4f9cbdb6e796332441.tar.xz |
Merge pull request #5877
2cd4fd8 Changed the use of boost:value_initialized for C++ list initializer (JesusRami)
4ad191f Removed unused boost/value_init header (whyamiroot)
928f4be Make null hash constants constexpr (whyamiroot)
Diffstat (limited to 'src/crypto')
-rw-r--r-- | src/crypto/hash.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/crypto/hash.h b/src/crypto/hash.h index 17071923d..27184fa53 100644 --- a/src/crypto/hash.h +++ b/src/crypto/hash.h @@ -32,7 +32,6 @@ #include <stddef.h> #include <iostream> -#include <boost/utility/value_init.hpp> #include "common/pod-class.h" #include "generic-ops.h" @@ -90,8 +89,8 @@ namespace crypto { epee::to_hex::formatted(o, epee::as_byte_span(v)); return o; } - const static crypto::hash null_hash = boost::value_initialized<crypto::hash>(); - const static crypto::hash8 null_hash8 = boost::value_initialized<crypto::hash8>(); + constexpr static crypto::hash null_hash = {}; + constexpr static crypto::hash8 null_hash8 = {}; } CRYPTO_MAKE_HASHABLE(hash) |