Re-enable plain-c++ test.

This commit is contained in:
Friedemann Kleint
2010-07-13 11:24:26 +02:00
parent ced7e3a0fc
commit ebc8e66abd
2 changed files with 4 additions and 5 deletions

View File

@@ -33,6 +33,7 @@
#include <iosfwd>
#include <vector>
#include <map>
#include <cstring>
namespace CPlusPlus {
@@ -55,7 +56,7 @@ public:
: _text(text), _size(size) {}
StringRef(const char *text)
: _text(text), _size(strlen(text)) {}
: _text(text), _size(std::strlen(text)) {}
inline const char *text() const { return _text; }
inline unsigned size() const { return _size; }
@@ -66,7 +67,7 @@ public:
bool operator == (const StringRef &other) const
{
if (_size == other._size)
return _text == other._text || ! strncmp(_text, other._text, _size);
return _text == other._text || ! std::strncmp(_text, other._text, _size);
return false;
}