aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp
diff options
context:
space:
mode:
authorGravatar Konstantin Podsvirov <konstantin@podsvirov.pro>2015-09-01 16:18:57 +0300
committerGravatar Konstantin Podsvirov <konstantin@podsvirov.pro>2015-09-01 16:18:57 +0300
commitdc90c13bec469fcbc69fc12db487c07ed94f649d (patch)
treeb0730447fea02aacb3e0ed5b092cfa388efaa7df /src/cpp
parent924b67da5e3d72651d62e2ac5b77600fd6b50b93 (diff)
Move static value grpc::string_ref::npos definition to cc file
Diffstat (limited to 'src/cpp')
-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 9adc092013..d12701f2c9 100644
--- a/src/cpp/util/string_ref.cc
+++ b/src/cpp/util/string_ref.cc
@@ -39,7 +39,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_;