Changeset 422:54464584b157 in lemon-1.0 for lemon
- Timestamp:
- 08/02/11 18:13:34 (13 years ago)
- Branch:
- default
- Children:
- 423:e8afd887d706, 424:3dcb45a871c3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lgf_reader.h
r374 r422 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-20 085 * Copyright (C) 2003-2011 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 964 964 int index = 0; 965 965 while (_reader_bits::readToken(line, map)) { 966 if(map == "-") { 967 if(index!=0) 968 throw FormatError("'-' is not allowed as a map name"); 969 else if (line >> std::ws >> c) 970 throw FormatError("Extra character at the end of line"); 971 else break; 972 } 966 973 if (maps.find(map) != maps.end()) { 967 974 std::ostringstream msg; … … 1804 1811 int index = 0; 1805 1812 while (_reader_bits::readToken(line, map)) { 1813 if(map == "-") { 1814 if(index!=0) 1815 throw FormatError("'-' is not allowed as a map name"); 1816 else if (line >> std::ws >> c) 1817 throw FormatError("Extra character at the end of line"); 1818 else break; 1819 } 1806 1820 if (maps.find(map) != maps.end()) { 1807 1821 std::ostringstream msg;
Note: See TracChangeset
for help on using the changeset viewer.