COIN-OR::LEMON - Graph Library

Changeset 1746:874e4bc21435 in lemon-0.x for lemon/lemon_reader.h


Ignore:
Timestamp:
10/28/05 10:40:42 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2274
Message:

If the file does not exist LemonReader? throws exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lemon_reader.h

    r1722 r1746  
    410410      : is(0), own_is(true) {
    411411      is = new std::ifstream(filename.c_str());
     412      if (is->fail()) {
     413        throw FileOpenError(filename);
     414      }
    412415    }
    413416
Note: See TracChangeset for help on using the changeset viewer.