diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-12-03 05:05:56 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-12-03 05:05:56 -0500 |
commit | ba75834ae9b3846a19291c8c281626dd0a891779 (patch) | |
tree | 85c0492501a0f44c640120e9cacc740354824a47 /bench2.cpp | |
parent | bded4d385fcb74c517e35bf252ac8c6d60a0599f (diff) | |
download | cryptopp-git-ba75834ae9b3846a19291c8c281626dd0a891779.tar.gz |
Removed VC++ 5.0 and 6.0 workarounds (Issue 342)
Diffstat (limited to 'bench2.cpp')
-rw-r--r-- | bench2.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -237,12 +237,9 @@ void BenchMarkAgreement(const char *name, AuthenticatedKeyAgreementDomainWithRol }
#endif
-//VC60 workaround: compiler bug triggered without the extra dummy parameters
template <class SCHEME>
-void BenchMarkCrypto(const char *filename, const char *name, double timeTotal, SCHEME *x=NULL)
+void BenchMarkCrypto(const char *filename, const char *name, double timeTotal)
{
- CRYPTOPP_UNUSED(x);
-
FileSource f(filename, true, new HexDecoder());
typename SCHEME::Decryptor priv(f);
typename SCHEME::Encryptor pub(priv);
@@ -250,12 +247,9 @@ void BenchMarkCrypto(const char *filename, const char *name, double timeTotal, S BenchMarkDecryption(name, priv, pub, timeTotal);
}
-//VC60 workaround: compiler bug triggered without the extra dummy parameters
template <class SCHEME>
-void BenchMarkSignature(const char *filename, const char *name, double timeTotal, SCHEME *x=NULL)
+void BenchMarkSignature(const char *filename, const char *name, double timeTotal)
{
- CRYPTOPP_UNUSED(x);
-
FileSource f(filename, true, new HexDecoder());
typename SCHEME::Signer priv(f);
typename SCHEME::Verifier pub(priv);
@@ -263,12 +257,9 @@ void BenchMarkSignature(const char *filename, const char *name, double timeTotal BenchMarkVerification(name, priv, pub, timeTotal);
}
-//VC60 workaround: compiler bug triggered without the extra dummy parameters
template <class D>
-void BenchMarkKeyAgreement(const char *filename, const char *name, double timeTotal, D *x=NULL)
+void BenchMarkKeyAgreement(const char *filename, const char *name, double timeTotal)
{
- CRYPTOPP_UNUSED(x);
-
FileSource f(filename, true, new HexDecoder());
D d(f);
BenchMarkKeyGen(name, d, timeTotal);
|