HAS_GLOBAL_STRING is no longer defined. ::string resolves to std::string on PLATFORM_GOOGLE.
PiperOrigin-RevId: 250806911
This commit is contained in:
parent
0116cc04ca
commit
ba80787ebc
@ -20,9 +20,7 @@ limitations under the License.
|
||||
|
||||
namespace tflite {
|
||||
|
||||
#ifndef HAS_GLOBAL_STRING
|
||||
using std::string;
|
||||
#endif
|
||||
|
||||
} // namespace tflite
|
||||
|
||||
|
@ -36,12 +36,6 @@ inline const char* IdentityOrConvertStringToRaw(const std::string& foo) {
|
||||
return foo.c_str();
|
||||
}
|
||||
|
||||
#if defined(PLATFORM_GOOGLE) && defined(HAS_GLOBAL_STRING)
|
||||
// Overloaded case where we return string.
|
||||
inline const char* IdentityOrConvertStringToRaw(const string& foo) {
|
||||
return foo.c_str();
|
||||
}
|
||||
#endif // PLATFORM_GOOGLE
|
||||
// Delegate to TensorFlow Appendf function until absl has an equivalent.
|
||||
template <typename... Args>
|
||||
inline void AppendFHelper(string* destination, const char* fmt,
|
||||
|
Loading…
Reference in New Issue
Block a user