aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/hash.h
diff options
context:
space:
mode:
authorLev Sizov <levsizov2015@outlook.com>2019-09-05 17:37:19 +0200
committerLev Sizov <levsizov2015@outlook.com>2019-09-05 17:37:19 +0200
commit928f4be9531a40fcca92d9f878e08f8111254990 (patch)
tree055d74efd572142e8518cefa6b1599b4ca11dabd /src/crypto/hash.h
parentRemoved unused boost/value_init header (diff)
downloadmonero-928f4be9531a40fcca92d9f878e08f8111254990.tar.xz
Make null hash constants constexpr
Simplify m_template initialization in miner
Diffstat (limited to '')
-rw-r--r--src/crypto/hash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/hash.h b/src/crypto/hash.h
index e012d1bd3..27184fa53 100644
--- a/src/crypto/hash.h
+++ b/src/crypto/hash.h
@@ -89,8 +89,8 @@ namespace crypto {
epee::to_hex::formatted(o, epee::as_byte_span(v)); return o;
}
- const static crypto::hash null_hash = {};
- const static crypto::hash8 null_hash8 = {};
+ constexpr static crypto::hash null_hash = {};
+ constexpr static crypto::hash8 null_hash8 = {};
}
CRYPTO_MAKE_HASHABLE(hash)