summaryrefslogtreecommitdiff
path: root/crc.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2009-03-04 09:27:52 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2009-03-04 09:27:52 +0000
commit15b0c807eb736f7f3800a514fc9a099466654ab9 (patch)
treedaab854b2a29bd8884224e9118cecebf04ca53c7 /crc.h
parentd73287b2b051540d487b5ac6f8aea342aa5b9678 (diff)
downloadcryptopp-15b0c807eb736f7f3800a514fc9a099466654ab9.tar.gz
fix compile on ICC 11
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@438 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'crc.h')
-rw-r--r--crc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crc.h b/crc.h
index 1cacf5b..f75ea38 100644
--- a/crc.h
+++ b/crc.h
@@ -24,7 +24,8 @@ public:
void Update(const byte *input, size_t length);
void TruncatedFinal(byte *hash, size_t size);
unsigned int DigestSize() const {return DIGESTSIZE;}
- std::string AlgorithmName() const {return "CRC32";}
+ static const char * 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);}
byte GetCrcByte(size_t i) const {return ((byte *)&(m_crc))[i];}