COIN-OR::LEMON - Graph Library

Changeset 291:d901321d6555 in lemon for lemon/lgf_writer.h


Ignore:
Timestamp:
10/01/08 11:58:03 (11 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Changing parameter order in exception classes + improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lgf_writer.h

    r290 r291  
    464464      : _os(new std::ofstream(fn.c_str())), local_os(true), _digraph(digraph),
    465465        _skip_nodes(false), _skip_arcs(false) {
    466       if (!(*_os)) throw IoError(fn, "Cannot write file");
     466      if (!(*_os)) throw IoError("Cannot write file", fn);
    467467    }
    468468
     
    474474      : _os(new std::ofstream(fn)), local_os(true), _digraph(digraph),
    475475        _skip_nodes(false), _skip_arcs(false) {
    476       if (!(*_os)) throw IoError(fn, "Cannot write file");
     476      if (!(*_os)) throw IoError("Cannot write file", fn);
    477477    }
    478478
     
    10241024      : _os(new std::ofstream(fn.c_str())), local_os(true), _graph(graph),
    10251025        _skip_nodes(false), _skip_edges(false) {
    1026       if (!(*_os)) throw IoError(fn, "Cannot write file");
     1026      if (!(*_os)) throw IoError("Cannot write file", fn);
    10271027    }
    10281028
     
    10341034      : _os(new std::ofstream(fn)), local_os(true), _graph(graph),
    10351035        _skip_nodes(false), _skip_edges(false) {
    1036       if (!(*_os)) throw IoError(fn, "Cannot write file");
     1036      if (!(*_os)) throw IoError("Cannot write file", fn);
    10371037    }
    10381038
     
    15861586    SectionWriter(const std::string& fn)
    15871587      : _os(new std::ofstream(fn.c_str())), local_os(true) {
    1588       if (!(*_os)) throw IoError(fn, "Cannot write file");
     1588      if (!(*_os)) throw IoError("Cannot write file", fn);
    15891589    }
    15901590
     
    15941594    SectionWriter(const char* fn)
    15951595      : _os(new std::ofstream(fn)), local_os(true) {
    1596       if (!(*_os)) throw IoError(fn, "Cannot write file");
     1596      if (!(*_os)) throw IoError("Cannot write file", fn);
    15971597    }
    15981598
Note: See TracChangeset for help on using the changeset viewer.