Define npos in a way that should make MSVC happier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76785 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2009-07-22 21:08:31 +00:00
parent dfd3b64783
commit b834a7b73c

View File

@ -26,7 +26,7 @@ namespace llvm {
class StringRef {
public:
typedef const char *iterator;
static const size_t npos = std::string::npos;
static const size_t npos = ~size_t(0);
private:
/// The start of the string, in an external buffer.