diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2009-03-03 10:18:44 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2009-03-03 10:18:44 +0000 |
commit | d73287b2b051540d487b5ac6f8aea342aa5b9678 (patch) | |
tree | fbc4aeb0fdfaf634a14dd8d232e0f99b7bcd948e /algparam.cpp | |
parent | 80416186794d128b7d0e88af1d469352404806d0 (diff) | |
download | cryptopp-d73287b2b051540d487b5ac6f8aea342aa5b9678.tar.gz |
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
Diffstat (limited to 'algparam.cpp')
-rw-r--r-- | algparam.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
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<AlgorithmParametersBase>(); } +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) |