summaryrefslogtreecommitdiff
path: root/algparam.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2007-04-16 00:26:05 +0000
committerweidai <weidai11@users.noreply.github.com>2007-04-16 00:26:05 +0000
commit629ff8ae40c1507f17b0da05a9fb7fb8ed51da5a (patch)
treefb01be21385c44d11adee4f9df608bb26ed453b3 /algparam.h
parent3ef60be9b7e2dc754467d4dea5f8a65ad515b363 (diff)
downloadcryptopp-git-629ff8ae40c1507f17b0da05a9fb7fb8ed51da5a.tar.gz
ICC workaround
Diffstat (limited to 'algparam.h')
-rw-r--r--algparam.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/algparam.h b/algparam.h
index 6a24298e..d0903332 100644
--- a/algparam.h
+++ b/algparam.h
@@ -130,6 +130,7 @@ public:
GetValueHelperClass<T,BASE> &Assignable()
{
+#ifndef __INTEL_COMPILER // ICL 9.1 workaround: Intel compiler copies the vTable pointer for some reason
if (m_getValueNames)
((*reinterpret_cast<std::string *>(m_pValue) += "ThisObject:") += typeid(T).name()) += ';';
if (!m_found && strncmp(m_name, "ThisObject:", 11) == 0 && strcmp(m_name+11, typeid(T).name()) == 0)
@@ -138,6 +139,7 @@ public:
*reinterpret_cast<T *>(m_pValue) = *m_pObject;
m_found = true;
}
+#endif
return *this;
}