aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/crypto.h
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-08-15 17:17:34 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-08-15 17:17:34 -0500
commit5295e4eb82bbf019ae9fbd2757e39bd411aad414 (patch)
tree48671ab567efcf04f8cd73a728fdb96f67cdd14a /src/crypto/crypto.h
parentMerge pull request #4136 (diff)
parentcrypto: do not use boost::value_initialized to init null skey/pkey (diff)
downloadmonero-5295e4eb82bbf019ae9fbd2757e39bd411aad414.tar.xz
Merge pull request #4137
63e342b crypto: move null_pkey/null_skey to the cpp file (moneromooo-monero) 0496c7c crypto: do not use boost::value_initialized to init null skey/pkey (moneromooo-monero)
Diffstat (limited to 'src/crypto/crypto.h')
-rw-r--r--src/crypto/crypto.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/crypto/crypto.h b/src/crypto/crypto.h
index 449af8f6d..a2d61b04e 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>
@@ -278,8 +277,8 @@ namespace crypto {
epee::to_hex::formatted(o, epee::as_byte_span(v)); return o;
}
- const static crypto::public_key null_pkey = boost::value_initialized<crypto::public_key>();
- const static crypto::secret_key null_skey = boost::value_initialized<crypto::secret_key>();
+ const extern crypto::public_key null_pkey;
+ const extern crypto::secret_key null_skey;
}
CRYPTO_MAKE_HASHABLE(public_key)