| 1020 | struct ScalarParseImpl { |
| 1021 | template <typename T, typename = internal::enable_if_parseable<T>> |
| 1022 | Status Visit(const T& t) { |
| 1023 | typename internal::StringConverter<T>::value_type value; |
| 1024 | if (!internal::ParseValue(t, s_.data(), s_.size(), &value)) { |
| 1025 | return Status::Invalid("error parsing '", s_, "' as scalar of type ", t); |
| 1026 | } |
| 1027 | return Finish(value); |
| 1028 | } |
| 1029 | |
| 1030 | Status Visit(const BinaryType&) { return FinishWithBuffer(); } |
| 1031 |
nothing calls this directly
no test coverage detected