| 112 | /// uses ostream operator >> to perform the conversion |
| 113 | template<typename Input> |
| 114 | auto parse_string(const std::string &i) |
| 115 | -> typename std::enable_if< |
| 116 | !std::is_same<Input, wchar_t>::value |
| 117 | && !std::is_same<Input, char16_t>::value |
| 118 | && !std::is_same<Input, char32_t>::value, |
| 119 | Input>::type |
| 120 | { |
| 121 | std::stringstream ss(i); |
| 122 | Input t; |
| 123 | ss >> t; |
| 124 | return t; |
| 125 | } |
| 126 | |
| 127 | template<typename Input> |
| 128 | auto parse_string(const std::string &) |