| 65 | const bool DEFAULT_REPORT_ERRORS = false; |
| 66 | |
| 67 | void parseLong(const string& input, ULONG& output) |
| 68 | { |
| 69 | char* tail = nullptr; |
| 70 | auto number = strtol(input.c_str(), &tail, 10); |
| 71 | if (tail && *tail == 0 && number > 0) |
| 72 | output = (ULONG) number; |
| 73 | } |
| 74 | |
| 75 | void parseBoolean(const string& input, bool& output) |
| 76 | { |