diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-09-10 10:23:14 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-10 10:29:49 -0700 |
commit | 5f004516a3c104ed7632ff4a31b65c49f620d199 (patch) | |
tree | ae64527ac2562ce0af48ed0b30e6216e8c2da33d /tensorflow/core/lib/strings/strcat.h | |
parent | 9b674c1aa986eab6a169af81791719bffc8a505d (diff) |
Automated rollback of commit d6f107761459dfdf8773a148e11193a3512a51a6
PiperOrigin-RevId: 212289067
Diffstat (limited to 'tensorflow/core/lib/strings/strcat.h')
-rw-r--r-- | tensorflow/core/lib/strings/strcat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tensorflow/core/lib/strings/strcat.h b/tensorflow/core/lib/strings/strcat.h index 351b6f5de3..a620f59447 100644 --- a/tensorflow/core/lib/strings/strcat.h +++ b/tensorflow/core/lib/strings/strcat.h @@ -124,6 +124,9 @@ class AlphaNum { AlphaNum(const StringPiece &pc) : piece_(pc) {} // NOLINT(runtime/explicit) AlphaNum(const tensorflow::string &str) // NOLINT(runtime/explicit) : piece_(str) {} + template <typename A> + AlphaNum(const std::basic_string<char, std::char_traits<char>, A> &str) + : piece_(str) {} // NOLINT(runtime/explicit) StringPiece::size_type size() const { return piece_.size(); } const char *data() const { return piece_.data(); } |