C++17: SimpleAtoi -> absl::SimpleAtoi (missing absl::)

This has worked so far due to ADL (argument-dependent lookup): the
string_view argument causes the absl:: namespace to be considered.

When std::string_view is available, the Abseil string_view might just be a
'using' alias to it; ADL no longer applies.

PiperOrigin-RevId: 280736814
Change-Id: I33d4f99248a2a323d9dc5494b314bf9c76185949
This commit is contained in:
Randy Dodgen 2019-11-15 14:31:01 -08:00 committed by TensorFlower Gardener
parent c5d29fbf04
commit 618a56eae8

View File

@ -118,7 +118,7 @@ bool Arg<toco::IntList>::Parse(string text) {
if (!text.empty()) {
int32 element;
for (absl::string_view part : absl::StrSplit(text, ',')) {
if (!SimpleAtoi(part, &element)) return false;
if (!absl::SimpleAtoi(part, &element)) return false;
parsed_value_.elements.push_back(element);
}
}