diff options
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) |