... | ... |
@@ -112,13 +112,13 @@ |
112 | 112 |
|
113 | 113 |
|
114 | 114 |
template<class Value> |
115 | 115 |
void solve(ArgParser &ap, std::istream &is, std::ostream &os, |
116 | 116 |
DimacsDescriptor &desc) |
117 | 117 |
{ |
118 |
std::stringstream iss(ap["infcap"]); |
|
118 |
std::stringstream iss(static_cast<std::string>(ap["infcap"])); |
|
119 | 119 |
Value infty; |
120 | 120 |
iss >> infty; |
121 | 121 |
if(iss.fail()) |
122 | 122 |
{ |
123 | 123 |
std::cerr << "Cannot interpret '" |
124 | 124 |
<< static_cast<std::string>(ap["infcap"]) << "' as infinite" |
0 comments (0 inline)