forked from OSchip/llvm-project
Define npos in a way that should make MSVC happier.
llvm-svn: 76785
This commit is contained in:
parent
aa19375206
commit
4a6554006d
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue