summaryrefslogtreecommitdiff
path: root/crc.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-11-13 11:50:34 -0500
committerJeffrey Walton <noloader@gmail.com>2016-11-13 11:50:34 -0500
commit76b11b010c97d4fba5f6d5a48730191762413c9d (patch)
treea58a178391a0e6cd54439a25932a387ce00e1a32 /crc.h
parent5be05bce076a2e0ef11f80a1d9b493fb8078f8bb (diff)
downloadcryptopp-git-76b11b010c97d4fba5f6d5a48730191762413c9d.tar.gz
Add CRYPTOPP_STATIC_CONSTEXPR macro
Diffstat (limited to 'crc.h')
-rw-r--r--crc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crc.h b/crc.h
index b1f5a34c..5becb547 100644
--- a/crc.h
+++ b/crc.h
@@ -31,7 +31,7 @@ public:
void Update(const byte *input, size_t length);
void TruncatedFinal(byte *hash, size_t size);
unsigned int DigestSize() const {return DIGESTSIZE;}
- CRYPTOPP_CONSTEXPR static const char *StaticAlgorithmName() {return "CRC32";}
+ CRYPTOPP_STATIC_CONSTEXPR char* const StaticAlgorithmName() {return "CRC32";}
std::string AlgorithmName() const {return StaticAlgorithmName();}
void UpdateByte(byte b) {m_crc = m_tab[CRC32_INDEX(m_crc) ^ b] ^ CRC32_SHIFTED(m_crc);}
@@ -56,7 +56,7 @@ public:
void Update(const byte *input, size_t length);
void TruncatedFinal(byte *hash, size_t size);
unsigned int DigestSize() const {return DIGESTSIZE;}
- CRYPTOPP_CONSTEXPR static const char *StaticAlgorithmName() {return "CRC32C";}
+ CRYPTOPP_STATIC_CONSTEXPR char* const StaticAlgorithmName() {return "CRC32C";}
std::string AlgorithmName() const {return StaticAlgorithmName();}
void UpdateByte(byte b) {m_crc = m_tab[CRC32_INDEX(m_crc) ^ b] ^ CRC32_SHIFTED(m_crc);}