| 922 | |
| 923 | template <typename T> |
| 924 | void stringstream_parser(const std::string& text, T& value) |
| 925 | { |
| 926 | std::stringstream in(text); |
| 927 | in >> value; |
| 928 | if (!in) { |
| 929 | throw_or_mimic<argument_incorrect_type>(text); |
| 930 | } |
| 931 | } |
| 932 | |
| 933 | template <typename T, |
| 934 | typename std::enable_if<std::is_integral<T>::value>::type* = nullptr |