From b533365f46f008dad1d43c89b86ac817423f969a Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 5 Nov 2010 16:04:54 +0000 Subject: Unfortunately it looks like VC 2008 has major issues with how Algorithm::clone is redefinied with covariant return types in the subclasses. Curiously, it only had problems with hash functions and MACs, not ciphers. So remove Algorithm::clone(), leaving the subclass implementations. --- src/algo_base/algo_base.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/algo_base/algo_base.h b/src/algo_base/algo_base.h index c27ea1809..813216a36 100644 --- a/src/algo_base/algo_base.h +++ b/src/algo_base/algo_base.h @@ -1,6 +1,6 @@ /* -* Symmetric Algorithm Base Class -* (C) 1999-2007 Jack Lloyd +* Algorithm Base Class +* (C) 2010 Jack Lloyd * * Distributed under the terms of the Botan license */ @@ -14,17 +14,12 @@ namespace Botan { /** -* This class represents a symmetric algorithm object. +* This class represents an algorithm of some kind */ class BOTAN_DLL Algorithm { public: - /** - * Make a new object representing the same algorithm as *this - */ - virtual Algorithm* clone() const = 0; - /** * Zeroize internal state */ -- cgit v1.2.3