Changeset 291:d901321d6555 in lemon-1.2 for lemon/lgf_writer.h
- Timestamp:
- 10/01/08 11:58:03 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lgf_writer.h
r290 r291 464 464 : _os(new std::ofstream(fn.c_str())), local_os(true), _digraph(digraph), 465 465 _skip_nodes(false), _skip_arcs(false) { 466 if (!(*_os)) throw IoError( fn, "Cannot write file");466 if (!(*_os)) throw IoError("Cannot write file", fn); 467 467 } 468 468 … … 474 474 : _os(new std::ofstream(fn)), local_os(true), _digraph(digraph), 475 475 _skip_nodes(false), _skip_arcs(false) { 476 if (!(*_os)) throw IoError( fn, "Cannot write file");476 if (!(*_os)) throw IoError("Cannot write file", fn); 477 477 } 478 478 … … 1024 1024 : _os(new std::ofstream(fn.c_str())), local_os(true), _graph(graph), 1025 1025 _skip_nodes(false), _skip_edges(false) { 1026 if (!(*_os)) throw IoError( fn, "Cannot write file");1026 if (!(*_os)) throw IoError("Cannot write file", fn); 1027 1027 } 1028 1028 … … 1034 1034 : _os(new std::ofstream(fn)), local_os(true), _graph(graph), 1035 1035 _skip_nodes(false), _skip_edges(false) { 1036 if (!(*_os)) throw IoError( fn, "Cannot write file");1036 if (!(*_os)) throw IoError("Cannot write file", fn); 1037 1037 } 1038 1038 … … 1586 1586 SectionWriter(const std::string& fn) 1587 1587 : _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); 1589 1589 } 1590 1590 … … 1594 1594 SectionWriter(const char* fn) 1595 1595 : _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); 1597 1597 } 1598 1598
Note: See TracChangeset
for help on using the changeset viewer.