From d73287b2b051540d487b5ac6f8aea342aa5b9678 Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 3 Mar 2009 10:18:44 +0000 Subject: fix VC60 compile, project file line-endings, Apple GCC 4.2 compile git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@437 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- algparam.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'algparam.cpp') diff --git a/algparam.cpp b/algparam.cpp index 84f8be0..89eacfe 100644 --- a/algparam.cpp +++ b/algparam.cpp @@ -18,6 +18,11 @@ bool CombinedNameValuePairs::GetVoidValue(const char *name, const std::type_info return m_pairs1.GetVoidValue(name, valueType, pValue) || m_pairs2.GetVoidValue(name, valueType, pValue); } +void AlgorithmParametersBase::operator=(const AlgorithmParametersBase& rhs) +{ + assert(false); +} + bool AlgorithmParametersBase::GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const { if (strcmp(name, "ValueNames") == 0) @@ -66,6 +71,15 @@ AlgorithmParameters::~AlgorithmParameters() Next().~member_ptr(); } +AlgorithmParameters & AlgorithmParameters::operator=(const AlgorithmParameters &x) +{ + if (this == &x) + return *this; + this->~AlgorithmParameters(); + new (this) AlgorithmParameters(x); + return *this; +} + bool AlgorithmParameters::GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const { if (m_constructed) -- cgit v1.2.1