aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-07-20 22:59:18 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-07-20 23:06:22 +0100
commit0496c7c91abbf8ec20cc70f383868957c6f9adc9 (patch)
tree474931dc5fac4d5935579c967c908faac4926c49 /src
parentcrypto: move null_pkey/null_skey to the cpp file (diff)
downloadmonero-0496c7c91abbf8ec20cc70f383868957c6f9adc9.tar.xz
crypto: do not use boost::value_initialized to init null skey/pkey
Diffstat (limited to 'src')
-rw-r--r--src/crypto/crypto.cpp4
-rw-r--r--src/crypto/crypto.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/crypto/crypto.cpp b/src/crypto/crypto.cpp
index 36b510a5b..a2db14e08 100644
--- a/src/crypto/crypto.cpp
+++ b/src/crypto/crypto.cpp
@@ -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);
diff --git a/src/crypto/crypto.h b/src/crypto/crypto.h
index 492bf966e..073707876 100644
--- a/src/crypto/crypto.h
+++ b/src/crypto/crypto.h
@@ -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>