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

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

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

trunk/esysUtils/src/EsysException.cpp revision 734 by jgs, Wed Jan 25 06:50:39 2006 UTC branches/intelc_win32/esysUtils/src/EsysException.cpp revision 742 by woo409, Sat Jun 24 11:27:16 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.734  
changed lines
  Added in v.742

  ViewVC Help
Powered by ViewVC 1.1.26