mirror of
https://github.com/monero-project/monero.git
synced 2025-08-24 03:47:18 -04:00
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)
This commit is contained in:
commit
ee6e849627
13 changed files with 35 additions and 38 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue