Fixed error with string of type unsigned char* (issue #428)

This commit is contained in:
Benoit Blanchon
2017-01-22 15:42:47 +01:00
parent a096098c1f
commit d4f725d1fa
10 changed files with 394 additions and 31 deletions

View File

@@ -29,8 +29,8 @@ struct StdStringTraits {
return static_cast<char*>(dup);
}
struct Reader : CharPointerTraits::Reader {
Reader(const TString& str) : CharPointerTraits::Reader(str.c_str()) {}
struct Reader : CharPointerTraits<char>::Reader {
Reader(const TString& str) : CharPointerTraits<char>::Reader(str.c_str()) {}
};
static bool equals(const TString& str, const char* expected) {