| 622 | |
| 623 | template <> |
| 624 | std::intptr_t to_integer<std::string>(const std::string &str) |
| 625 | { |
| 626 | for (auto &ch : str) { |
| 627 | if (!std::isdigit(ch)) |
| 628 | throw cs::runtime_error("Wrong literal format."); |
| 629 | } |
| 630 | return std::stol(str); |
| 631 | } |
| 632 | |
| 633 | // Hash |
| 634 | template <> |
nothing calls this directly
no test coverage detected