COIN-OR::LEMON - Graph Library

Changeset 1209:dc9fdf77007f in lemon-0.x


Ignore:
Timestamp:
03/09/05 15:23:36 (15 years ago)
Author:
Mihaly Barasz
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1628
Message:

Fix a bug noticed by deba.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/error.h

    r1207 r1209  
    420420
    421421    virtual const char* what() const throw() {
    422       const char *mes = 0;
    423422      try {
    424423        std::ostringstream ostr;
     
    429428        if( assertion )
    430429          ostr << " (assertion '" << assertion << "' failed)";
    431         mes = ostr.str().c_str();
    432         /// \bug Szerintem a 'mes'-re nem szabad hivatkozni, mert
    433         /// az elobb felszabadul.
     430        return ostr.str().c_str();
    434431      }
    435432      catch(...) {}
    436       if( mes ) return mes;
    437433      return exceptionName();
    438434    }
Note: See TracChangeset for help on using the changeset viewer.