Define npos in a way that should make MSVC happier.

llvm-svn: 76785
This commit is contained in:
Daniel Dunbar 2009-07-22 21:08:31 +00:00
parent aa19375206
commit 4a6554006d
1 changed files with 1 additions and 1 deletions

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.