functor to convert the abs() of single string to a double
| 27 | |
| 28 | // functor to convert the abs() of single string to a double |
| 29 | double MakeAbsDouble(const string &element) { |
| 30 | std::istringstream i(element); |
| 31 | double x; |
| 32 | if (!(i >> x)) { |
| 33 | cerr << "Error: Could not properly convert string to numeric (\"" + element + "\")" << endl; |
| 34 | exit(1); |
| 35 | } |
| 36 | return fabs(x); |
| 37 | } |
| 38 | |
| 39 | struct ValueGreaterThan |
| 40 | { |
nothing calls this directly
no outgoing calls
no test coverage detected