Commit f4a33d1c authored by A. Unique TensorFlower's avatar A. Unique TensorFlower Committed by TensorFlower Gardener
Browse files

Remove old pre-C++11 non-portable helper code.

With C++11, vector::data is guaranteed to return a valid pointer p regardless of the range size such that [p, p + size) is a valid range, and basic_string always contains a null terminator.

Current consuming code never checks for the nullness (which already isn't guaranteed for vector by the current implementation) and passes the size separately to the eventual consumer.

PiperOrigin-RevId: 177104032
parent 446f8fd6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment