summaryrefslogtreecommitdiff
path: root/luc.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-17 10:38:44 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-17 10:38:44 -0400
commitca6a93bbc51b96c276d62db9f10922cb04b16126 (patch)
tree36da6925545d3ab81e93d39c560cef6f2effcc40 /luc.h
parentb435ce07c880a3e42224071f84999f148f1d96e2 (diff)
downloadcryptopp-git-ca6a93bbc51b96c276d62db9f10922cb04b16126.tar.gz
Cleared virtual destructor warning by explicitly adding them
Diffstat (limited to 'luc.h')
-rw-r--r--luc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/luc.h b/luc.h
index 730776d5..7a816843 100644
--- a/luc.h
+++ b/luc.h
@@ -119,6 +119,8 @@ public:
Element BERDecodeElement(BufferedTransformation &bt) const {return Integer(bt);}
void DEREncodeElement(BufferedTransformation &bt, const Element &v) const {v.DEREncode(bt);}
+ virtual ~DL_GroupPrecomputation_LUC() { }
+
// non-inherited
void SetModulus(const Integer &v) {m_p = v;}
const Integer & GetModulus() const {return m_p;}
@@ -142,6 +144,8 @@ public:
Integer CascadeExponentiate(const DL_GroupPrecomputation<Element> &group, const Integer &exponent, const DL_FixedBasePrecomputation<Integer> &pc2, const Integer &exponent2) const
{throw NotImplemented("DL_BasePrecomputation_LUC: CascadeExponentiate not implemented");} // shouldn't be called
+ virtual ~DL_BasePrecomputation_LUC() { }
+
private:
Integer m_g;
};
@@ -158,6 +162,8 @@ public:
Element CascadeExponentiate(const Element &element1, const Integer &exponent1, const Element &element2, const Integer &exponent2) const
{throw NotImplemented("LUC_GroupParameters: MultiplyElements can not be implemented");}
+ virtual ~DL_GroupParameters_LUC() { }
+
// NameValuePairs interface
bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const
{