mirror of
https://github.com/monero-project/monero.git
synced 2025-08-02 17:56:09 -04:00
crypto: do not use boost::value_initialized to init null skey/pkey
This commit is contained in:
parent
63e342be84
commit
0496c7c91a
3 changed files with 10 additions and 3 deletions
|
@ -70,8 +70,8 @@ namespace crypto {
|
|||
#include "random.h"
|
||||
}
|
||||
|
||||
const crypto::public_key null_pkey = boost::value_initialized<crypto::public_key>();
|
||||
const crypto::secret_key null_skey = boost::value_initialized<crypto::secret_key>();
|
||||
const crypto::public_key null_pkey = crypto::public_key{};
|
||||
const crypto::secret_key null_skey = crypto::secret_key{};
|
||||
|
||||
static inline unsigned char *operator &(ec_point &point) {
|
||||
return &reinterpret_cast<unsigned char &>(point);
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include <iostream>
|
||||
#include <boost/thread/mutex.hpp>
|
||||
#include <boost/thread/lock_guard.hpp>
|
||||
#include <boost/utility/value_init.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue