Resolved ambiguous operator for clang.

This commit is contained in:
jief 2020-03-11 17:27:07 +03:00
parent c8e8635a0c
commit acfb89da04

View File

@ -73,10 +73,10 @@ public:
// XString mbs() const;
/* [] */
wchar_t operator [](int i) const { return *data(i); }
wchar_t operator [](int i) const { return *data((INTN)i); }
wchar_t operator [](UINTN i) const { return *data(i); }
wchar_t& operator [](int i) { return *data(i); }
wchar_t& operator [](int i) { return *data((INTN)i); }
wchar_t& operator [](UINTN i) { return *data(i); }
wchar_t LastChar() const { if ( length() > 0 ) return data()[length()-1]; else return 0; }