aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeng Xiao <xfxyjwf@gmail.com>2016-07-06 15:37:27 -0700
committerFeng Xiao <xfxyjwf@gmail.com>2016-07-06 15:37:27 -0700
commita29a9c5d491f2a25b108f474802abad95829a027 (patch)
treedd427a6c79d34fb0fd3834a2d6c6cdbc65077d4e
parentec4589736e71a332d63c129c1cf8e532098c2633 (diff)
downloadprotobuf-a29a9c5d491f2a25b108f474802abad95829a027.tar.gz
protobuf-a29a9c5d491f2a25b108f474802abad95829a027.tar.bz2
protobuf-a29a9c5d491f2a25b108f474802abad95829a027.zip
Don't support global ::string in stringpiece.h
-rw-r--r--src/google/protobuf/stubs/stringpiece.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/google/protobuf/stubs/stringpiece.h b/src/google/protobuf/stubs/stringpiece.h
index 91671659..8910688b 100644
--- a/src/google/protobuf/stubs/stringpiece.h
+++ b/src/google/protobuf/stubs/stringpiece.h
@@ -222,14 +222,6 @@ class LIBPROTOBUF_EXPORT StringPiece {
: ptr_(str.data()), length_(0) {
length_ = CheckedSsizeTFromSizeT(str.size());
}
-#if defined(HAS_GLOBAL_STRING)
- template <class Allocator>
- StringPiece( // NOLINT(runtime/explicit)
- const basic_string<char, std::char_traits<char>, Allocator>& str)
- : ptr_(str.data()), length_(0) {
- length_ = CheckedSsizeTFromSizeT(str.size());
- }
-#endif
StringPiece(const char* offset, stringpiece_ssize_type len)
: ptr_(offset), length_(len) {