summaryrefslogtreecommitdiff
path: root/src/cppunit/Exception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cppunit/Exception.cpp')
-rw-r--r--src/cppunit/Exception.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cppunit/Exception.cpp b/src/cppunit/Exception.cpp
index 3a4efd0..80b005a 100644
--- a/src/cppunit/Exception.cpp
+++ b/src/cppunit/Exception.cpp
@@ -61,7 +61,10 @@ Exception::~Exception () throw()
Exception&
Exception::operator =( const Exception& other )
{
- SuperClass::operator =(other);
+// Don't call superclass operator =(). VC++ STL implementation
+// has a bug. It calls the destructor and copy constructor of
+// std::exception() which reset the virtual table to std::exception.
+// SuperClass::operator =(other);
if ( &other != this )
{