summaryrefslogtreecommitdiff
path: root/adler32.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2009-03-04 09:27:52 +0000
committerweidai <weidai11@users.noreply.github.com>2009-03-04 09:27:52 +0000
commite4295fda977bcbddb3d14d344ba45c19c43c6b28 (patch)
treedaab854b2a29bd8884224e9118cecebf04ca53c7 /adler32.h
parenta47f06515b523ff17b8fcd3a6a124772813364a0 (diff)
downloadcryptopp-git-e4295fda977bcbddb3d14d344ba45c19c43c6b28.tar.gz
fix compile on ICC 11
Diffstat (limited to 'adler32.h')
-rw-r--r--adler32.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/adler32.h b/adler32.h
index 1cc90ce6..0ed803da 100644
--- a/adler32.h
+++ b/adler32.h
@@ -14,7 +14,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 "Adler32";}
+ static const char * StaticAlgorithmName() {return "Adler32";}
+ std::string AlgorithmName() const {return StaticAlgorithmName();}
private:
void Reset() {m_s1 = 1; m_s2 = 0;}