/[escript]/trunk/esysUtils/src/EsysException.cpp
ViewVC logotype

Diff of /trunk/esysUtils/src/EsysException.cpp

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

revision 468 by jgs, Wed Jan 25 06:50:39 2006 UTC revision 757 by woo409, Mon Jun 26 13:12:56 2006 UTC
# Line 61  ostringstream& EsysException::reason() Line 61  ostringstream& EsysException::reason()
61  // Overloaded assignment operator.  // Overloaded assignment operator.
62  EsysException& EsysException::operator=(const EsysException &inException) {  EsysException& EsysException::operator=(const EsysException &inException) {
63    if (this != &inException) {    if (this != &inException) {
64      //        //
65      // call the base class operator=        // call the base class operator=
66      this->exception::operator=(dynamic_cast<const exception&>(inException));        // win32 refactor: parent class operator= shares pointer the result is
67      //        // all classes try to free the same pointer, dies on windows badly.
68      // copy the message buffer into this EsysException        // this->exception::operator=(dynamic_cast<const exception&>(inException));
69      m_reason << inException.m_reason.str();        //
70          // copy the message buffer into this EsysException
71          m_reason << inException.m_reason.str();    // copy the message buffer into this EsysException
72    }    }
73    return *this;    return *this;
74  }  }

Legend:
Removed from v.468  
changed lines
  Added in v.757

  ViewVC Help
Powered by ViewVC 1.1.26