Fix MSVC 15.3 CE.

GitOrigin-RevId: 4f6a5caba284e9742b804530684795650435f493
This commit is contained in:
levlam 2019-09-08 22:49:46 +03:00
parent e2734d4fb6
commit f8f7e32ba5

View File

@ -61,7 +61,7 @@ class MutableSlice {
char &back();
char &operator[](size_t i);
static const size_t npos = string::npos;
static const size_t npos = static_cast<size_t>(-1);
};
class Slice {
@ -126,7 +126,7 @@ class Slice {
char back() const;
char operator[](size_t i) const;
static const size_t npos = string::npos;
static const size_t npos = static_cast<size_t>(-1);
};
bool operator==(const Slice &a, const Slice &b);