functor to convert a single string to a double
| 16 | |
| 17 | // functor to convert a single string to a double |
| 18 | double MakeDouble(const string &element) { |
| 19 | std::istringstream i(element); |
| 20 | double x; |
| 21 | if (!(i >> x)) { |
| 22 | cerr << "Error: Could not properly convert string to numeric (\"" + element + "\")" << endl; |
| 23 | exit(1); |
| 24 | } |
| 25 | return x; |
| 26 | } |
| 27 | |
| 28 | // functor to convert the abs() of single string to a double |
| 29 | double MakeAbsDouble(const string &element) { |
nothing calls this directly
no outgoing calls
no test coverage detected