/[escript]/branches/RW_WIN32/esysUtils/src/EsysException.cpp
ViewVC logotype

Diff of /branches/RW_WIN32/esysUtils/src/EsysException.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 217 by robwdcock, Wed Nov 23 06:32:25 2005 UTC revision 218 by robwdcock, Thu Nov 24 07:42:12 2005 UTC
# Line 62  ostringstream& EsysException::reason() Line 62  ostringstream& EsysException::reason()
62  // Overloaded assignment operator.  // Overloaded assignment operator.
63  EsysException& EsysException::operator=(const EsysException &inException) {  EsysException& EsysException::operator=(const EsysException &inException) {
64    if (this != &inException) {    if (this != &inException) {
65      //        //
66      // call the base class operator=        // call the base class operator=
67      this->exception::operator=(dynamic_cast<const exception&>(inException));        // win32 refactor: parent class operator= shares pointer the result is
68      //        // all classes try to free the same pointer, dies on windows badly.
69      // copy the message buffer into this EsysException        // this->exception::operator=(dynamic_cast<const exception&>(inException));
70      m_reason << inException.m_reason.str();        //
71          // copy the message buffer into this EsysException
72          m_reason << inException.m_reason.str();    // copy the message buffer into this EsysException
73    }    }
74    return *this;    return *this;
75  }  }

Legend:
Removed from v.217  
changed lines
  Added in v.218

  ViewVC Help
Powered by ViewVC 1.1.26