| 748 | } |
| 749 | |
| 750 | int stoidefault(const std::string& val, int def) { |
| 751 | try { |
| 752 | return std::stoi(val); |
| 753 | } catch (const std::exception&) { |
| 754 | return def; |
| 755 | } |
| 756 | } |
| 757 | |
| 758 | double stoddefault(const std::string& val, double def) { |
| 759 | try { |
nothing calls this directly
no outgoing calls
no test coverage detected