aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/util
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-11-04 08:04:56 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-11-04 08:04:56 -0800
commit187c4b36d9fd0b2c888b9a2850698346553f47a6 (patch)
tree9c71afa034d12442e3a29f5fc80fcf3b9b9b0ac7 /src/cpp/util
parent241a5ad3cbb921e99f2ba45789d3acf65a5a845a (diff)
parentdc90c13bec469fcbc69fc12db487c07ed94f649d (diff)
Merge pull request #3177 from podsvirov/topic-grpc-string-ref-npos-redifinition
Move static value grpc::string_ref::npos definition to cc file
Diffstat (limited to 'src/cpp/util')
-rw-r--r--src/cpp/util/string_ref.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpp/util/string_ref.cc b/src/cpp/util/string_ref.cc
index 604134fa9d..66c79a1818 100644
--- a/src/cpp/util/string_ref.cc
+++ b/src/cpp/util/string_ref.cc
@@ -40,7 +40,7 @@
namespace grpc {
-const size_t string_ref::npos;
+const size_t string_ref::npos = size_t(-1);
string_ref& string_ref::operator=(const string_ref& rhs) {
data_ = rhs.data_;